You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
384 B
Kotlin
10 lines
384 B
Kotlin
2 years ago
|
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||
3 years ago
|
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.addTextToFile
|
||
3 years ago
|
import java.io.File
|
||
|
|
||
|
fun Prov.configureNoSwappiness() = def {
|
||
|
// set swappiness to 0
|
||
|
addTextToFile("vm.swappiness=0", File("/etc/sysctl.conf"), sudo = true)
|
||
|
}
|