Sleep changes

This commit is contained in:
2022-03-11 02:02:05 +00:00
parent 571d124911
commit fcd5cadb5d
2 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,8 @@
powertop.enable = true;
};
boot.resumeDevice = "/dev/disk/by-label/swap";
hardware.acpilight.enable = true;
networking = {
@@ -35,6 +37,10 @@
tapping = true;
};
};
logind = {
lidSwitch = "suspend-then-hibernate";
};
};
}

View File

@@ -161,6 +161,7 @@
screen-locker = {
enable = true;
lockCmd = "${pkgs.i3lock}/bin/i3lock -i /home/daniel/wallpapers/lock.png";
inactiveInterval = 60;
};
};