diff --git a/machines/WinMax2/configuration.nix b/machines/WinMax2/configuration.nix index 79ce4d6..f5213b1 100755 --- a/machines/WinMax2/configuration.nix +++ b/machines/WinMax2/configuration.nix @@ -110,6 +110,17 @@ environment.sessionVariables = { STEAM_FORCE_DESKTOPUI_SCALING = "2"; }; + home-manager.users.toast = { + # Steam's hidpi support is bugged so it needds to be hardcoded + # This bypasses that + xdg.desktopEntries = { + steam-noScaling = { + name = "Steam (No Scaling)"; + exec = "env STEAM_FORCE_DESKTOPUI_SCALING=0 steam %U"; + icon = "steam"; + }; + }; + }; # Enable sound. # sound.enable = true; diff --git a/machines/WinMax2/hardware-configuration.nix b/machines/WinMax2/hardware-configuration.nix index 45745ac..4778fbe 100755 --- a/machines/WinMax2/hardware-configuration.nix +++ b/machines/WinMax2/hardware-configuration.nix @@ -19,7 +19,10 @@ in { boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; - boot.initrd.luks.devices."SSD".device = "/dev/disk/by-label/wm2-enc"; + boot.initrd.luks.devices = { + "SSD".device = "/dev/disk/by-label/wm2-enc"; + "swap".device = "/dev/disk/by-label/wm2-swap"; + }; fileSystems = { "efi_boot_partition" = { @@ -65,7 +68,13 @@ in { }; }; - swapDevices = []; + swapDevices = [ + { + device = "/dev/mapper/swap"; + # only want to use the swap partition for hibernating + priority = 0; + } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = {