steam install test

This commit is contained in:
nyxerinys 2026-10-03 01:18:08 -05:00
parent 1cc16f08bd
commit 1cb7e41c65
5 changed files with 33 additions and 12 deletions

View file

@ -34,6 +34,10 @@
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
steam-config-nix = {
url = "github:different-name/steam-config-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets ={ secrets ={
url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets"; url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets";
flake = false; flake = false;

View file

@ -33,9 +33,4 @@
}; };
}; };
systemd.services."zfs-import-nix-main" = {
wants = [ "keys.mount" ];
after = [ "keys.mount" ];
};
} }

View file

@ -2,6 +2,12 @@
{ {
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
fileSystems."/keys" = {
device = "/dev/mapper/zfs-keys";
fsType = "ext4";
};
fileSystems."/" = { fileSystems."/" = {
device = "nix-root/root"; device = "nix-root/root";
fsType = "zfs"; fsType = "zfs";
@ -17,10 +23,10 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/keys" = { systemd.services."zfs-import-nix-main" = {
device = "/dev/mapper/zfs-keys"; wants = [ "keys.mount" ];
fsType = "ext4"; after = [ "keys.mount" ];
}; };
fileSystems."/home/nyxerinys" = { fileSystems."/home/nyxerinys" = {
device = "nix-main/nyxerinys"; device = "nix-main/nyxerinys";

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];

16
hosts/apollo/steam.nix Normal file
View file

@ -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;
}
};
}