feat(Zephyrus): Steam specialization now uses jovian SteamOS module

This commit is contained in:
GaspardCulis 2024-11-01 20:36:25 +01:00
parent cc00b335a0
commit 0ef48bdc49
4 changed files with 62 additions and 21 deletions

View file

@ -436,6 +436,49 @@
"type": "github" "type": "github"
} }
}, },
"jovian": {
"inputs": {
"nix-github-actions": "nix-github-actions",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1729921861,
"narHash": "sha256-lR1FS18NxY8XfYVxFSIAHCeJuTgbGUy7J79Bo0e9ZMA=",
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"rev": "b0d86a65833bed4eda4d36ad54730a967bdca15a",
"type": "github"
},
"original": {
"owner": "Jovian-Experiments",
"repo": "Jovian-NixOS",
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"jovian",
"nixpkgs"
]
},
"locked": {
"lastModified": 1729697500,
"narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=",
"owner": "zhaofengli",
"repo": "nix-github-actions",
"rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf",
"type": "github"
},
"original": {
"owner": "zhaofengli",
"ref": "matrix-name",
"repo": "nix-github-actions",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1727348695,
@ -498,6 +541,7 @@
"hy3", "hy3",
"hyprland" "hyprland"
], ],
"jovian": "jovian",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
} }

View file

@ -50,6 +50,12 @@
url = "github:GaspardCulis/anixrun"; url = "github:GaspardCulis/anixrun";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# SteamOS
jovian = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@ -59,6 +65,7 @@
deploy-rs, deploy-rs,
sops-nix, sops-nix,
home-manager, home-manager,
jovian,
... ...
} @ inputs: let } @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
@ -71,6 +78,7 @@
./hosts/Zephyrus ./hosts/Zephyrus
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
jovian.nixosModules.jovian
]; ];
}; };

View file

@ -104,30 +104,17 @@
]; ];
group = "steam"; group = "steam";
}; };
programs = { services.desktopManager.plasma6.enable = true;
gamescope = { jovian.steam = {
enable = true; enable = true;
capSysNice = true; autoStart = true;
env = { user = "steam";
desktopSession = "plasma";
};
environment.sessionVariables = {
XKB_DEFAULT_LAYOUT = "fr"; XKB_DEFAULT_LAYOUT = "fr";
}; };
}; };
steam = {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
};
hardware.xone.enable = true; # support for the xbox controller USB dongle
services.getty.autologinUser = "steam";
environment = {
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ${(pkgs.writeShellScript "gs.sh" "${builtins.readFile ../../bin/gs.sh}")}
'';
};
};
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View file

@ -68,6 +68,8 @@
"steam-original" "steam-original"
"steam-run" "steam-run"
"steam-unwrapped" "steam-unwrapped"
"steam-jupiter-unwrapped"
"steamdeck-hw-theme"
]; ];
hardware.graphics = { hardware.graphics = {