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";
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;

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;
fileSystems."/keys" = {
device = "/dev/mapper/zfs-keys";
fsType = "ext4";
};
fileSystems."/" = {
device = "nix-root/root";
fsType = "zfs";
@ -17,9 +23,9 @@
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" = {

View file

@ -1,8 +1,8 @@
{ 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" ];

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