From 1cb7e41c65e16343fe5ce099fac1427045c82cd7 Mon Sep 17 00:00:00 2001 From: nyxerinys Date: Sat, 3 Oct 2026 01:18:08 -0500 Subject: [PATCH] steam install test --- flake.nix | 4 ++++ hosts/apollo/boot/encryption.nix | 5 ----- hosts/apollo/boot/filesystems.nix | 14 ++++++++++---- hosts/apollo/hardware.nix | 6 +++--- hosts/apollo/steam.nix | 16 ++++++++++++++++ 5 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 hosts/apollo/steam.nix diff --git a/flake.nix b/flake.nix index 59c3545..26b865c 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + steam-config-nix = { + url = "github:different-name/steam-config-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; secrets ={ url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets"; flake = false; diff --git a/hosts/apollo/boot/encryption.nix b/hosts/apollo/boot/encryption.nix index 3c4ced4..d9c7026 100644 --- a/hosts/apollo/boot/encryption.nix +++ b/hosts/apollo/boot/encryption.nix @@ -33,9 +33,4 @@ }; }; - - systemd.services."zfs-import-nix-main" = { - wants = [ "keys.mount" ]; - after = [ "keys.mount" ]; - }; } \ No newline at end of file diff --git a/hosts/apollo/boot/filesystems.nix b/hosts/apollo/boot/filesystems.nix index 5830c12..6e6b99a 100644 --- a/hosts/apollo/boot/filesystems.nix +++ b/hosts/apollo/boot/filesystems.nix @@ -2,6 +2,12 @@ { boot.zfs.forceImportRoot = false; + + fileSystems."/keys" = { + device = "/dev/mapper/zfs-keys"; + fsType = "ext4"; + }; + fileSystems."/" = { device = "nix-root/root"; fsType = "zfs"; @@ -17,10 +23,10 @@ fsType = "zfs"; }; - fileSystems."/keys" = { - device = "/dev/mapper/zfs-keys"; - fsType = "ext4"; - }; + systemd.services."zfs-import-nix-main" = { + wants = [ "keys.mount" ]; + after = [ "keys.mount" ]; + }; fileSystems."/home/nyxerinys" = { device = "nix-main/nyxerinys"; diff --git a/hosts/apollo/hardware.nix b/hosts/apollo/hardware.nix index 5baf0c8..14a4bcf 100644 --- a/hosts/apollo/hardware.nix +++ b/hosts/apollo/hardware.nix @@ -1,9 +1,9 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; diff --git a/hosts/apollo/steam.nix b/hosts/apollo/steam.nix new file mode 100644 index 0000000..3db65e1 --- /dev/null +++ b/hosts/apollo/steam.nix @@ -0,0 +1,16 @@ +{ inputs, pkgs, ... }: + +{ + imports = [ inputs.steam-config-nix.nixosModules.default ]; + + programs.steam = { + enable = true; + protontricks.enable = true; + localNetworkGameTransfers.openFirewall = true; + config = { + enable = true; + defaultCompatTool = pkgs.proton-ge-bin; + displayRatesAsBits = false; + } + }; +} \ No newline at end of file