23 lines
456 B
Nix
23 lines
456 B
Nix
{ ... }:
|
|
{
|
|
# Disable hibernation, sleep and other friends
|
|
systemd.targets = {
|
|
sleep = {
|
|
enable = false;
|
|
unitConfig.DefaultDependencies = "no";
|
|
};
|
|
suspend = {
|
|
enable = false;
|
|
unitConfig.DefaultDependencies = "no";
|
|
};
|
|
hibernate = {
|
|
enable = false;
|
|
unitConfig.DefaultDependencies = "no";
|
|
};
|
|
"hybrid-sleep" = {
|
|
enable = false;
|
|
unitConfig.DefaultDependencies = "no";
|
|
};
|
|
};
|
|
}
|