From 0e4c25aa67103dbf1b08cf31a0dbfc2b1a19f413 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 23 Jan 2025 00:07:50 +0100 Subject: [PATCH] Mount steam --- modules/common/linux/default.nix | 7 ++++++- nki-home/hardware-configuration.nix | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/modules/common/linux/default.nix b/modules/common/linux/default.nix index 72413f4..2c2186b 100644 --- a/modules/common/linux/default.nix +++ b/modules/common/linux/default.nix @@ -331,7 +331,12 @@ in # DConf for GNOME configurations programs.dconf.enable = true; # Gaming! (not for ARM64) - programs.steam.enable = !pkgs.stdenv.isAarch64; + programs.steam.enable = true; + programs.gamescope = { + enable = true; + # capSysNice = true; # https://github.com/NixOS/nixpkgs/issues/351516 + args = [ "--adaptive-sync" "--rt" ]; + }; ## Services # OpenSSH so you can SSH to me diff --git a/nki-home/hardware-configuration.nix b/nki-home/hardware-configuration.nix index 7b695ed..35a97ec 100644 --- a/nki-home/hardware-configuration.nix +++ b/nki-home/hardware-configuration.nix @@ -33,6 +33,18 @@ fsType = "vfat"; }; + fileSystems."/mnt/steam" = { + device = "/dev/disk/by-uuid/d1db9f65-6add-4714-b9d7-16e16f687396"; + fsType = "btrfs"; + options = [ "compress=zstd" "subvol=steam" ]; + encrypted = { + enable = true; + label = "encdata"; + blkDev = "/dev/disk/by-uuid/6544f506-9a22-479c-8bfc-aee1b9e0deda"; + keyFile = "/sysroot/var/crypto/key_data"; + }; + }; + swapDevices = [{ device = "/dev/disk/by-uuid/561f6441-1915-4059-a5e1-76a449b0c9bf"; }];