From e53e5ae1c2a7319c4f9feceeb8b6993dfde394f2 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Tue, 28 May 2024 01:11:53 +0100 Subject: [PATCH 1/2] [tohru] update hardware-configuration.nix --- hosts/tohru/hardware-configuration.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/tohru/hardware-configuration.nix b/hosts/tohru/hardware-configuration.nix index 95d3991..d42b1de 100644 --- a/hosts/tohru/hardware-configuration.nix +++ b/hosts/tohru/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -39,7 +39,24 @@ options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [ ]; + fileSystems."/data" = + { device = "rpool/data"; + fsType = "zfs"; + }; + + fileSystems."/data/steam" = + { device = "rpool/data/steam"; + fsType = "zfs"; + }; + + fileSystems."/config" = + { device = "rpool/config"; + fsType = "zfs"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a066313e-2467-4e07-ad0c-aeb7ff3f8d97"; } + ]; # 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 From 0e4b37925a218a89da8d867b7cd5ba48c81d54e2 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Tue, 28 May 2024 01:12:05 +0100 Subject: [PATCH 2/2] [tohru] Install Steam --- hosts/tohru/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/tohru/configuration.nix b/hosts/tohru/configuration.nix index 5abb6b0..22b1561 100644 --- a/hosts/tohru/configuration.nix +++ b/hosts/tohru/configuration.nix @@ -62,6 +62,12 @@ # enableSSHSupport = true; # }; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + }; + # List services that you want to enable: # Enable the OpenSSH daemon.