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
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
|
|
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.addTextToFile
|
|
import java.io.File
|
|
|
|
fun Prov.configureNoSwappiness() = def {
|
|
// set swappiness to 0
|
|
addTextToFile("vm.swappiness=0", File("/etc/sysctl.conf"), sudo = true)
|
|
} |