diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/laptop/configuration.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index a95c60d..a15ab2b 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -36,6 +36,7 @@ programs.bash.shellAliases = { battery = "echo $(($(cat /sys/class/power_supply/BAT0/charge_now)*100/$(cat /sys/class/power_supply/BAT0/charge_full)))%"; + hibernate = "systemctl hibernate"; }; services.keyd = { @@ -48,5 +49,15 @@ home-manager.users.christian.custom.xmobarBattery = true; + swapDevices = [ + { + device = "/swapfile"; + size = 8192; # 8GB in MiB + } + ]; + + boot.resumeDevice = "/dev/disk/by-uuid/56ae0488-d952-41d8-8128-60a46e979d91"; + boot.kernelParams = [ "resume_offset=12832768" ]; + system.stateVersion = "25.11"; } |
