diff --git a/hostconfig/gandalf/hardware-configuration.nix b/hostconfig/gandalf/hardware-configuration.nix index d95ed9d..18af62c 100644 --- a/hostconfig/gandalf/hardware-configuration.nix +++ b/hostconfig/gandalf/hardware-configuration.nix @@ -27,7 +27,9 @@ options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [ ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/6993932f-5b29-4207-915a-2f185ec9f485"; } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hostconfig/gandalf/nixos.nix b/hostconfig/gandalf/nixos.nix index a42ba2f..1711ab9 100644 --- a/hostconfig/gandalf/nixos.nix +++ b/hostconfig/gandalf/nixos.nix @@ -3,6 +3,8 @@ boot.loader.efi.canTouchEfiVariables = true; boot.kernelParams = [ "amd_pstate=active" ]; + boot.resumeDevice = "/dev/disk/by-uuid/6993932f-5b29-4207-915a-2f185ec9f485"; + powerManagement = { enable = true; powertop.enable = true;