summaryrefslogtreecommitdiff
path: root/modules/desktop/steam.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-10-11 21:02:35 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-10-11 21:23:05 +0200
commiteeb53599fb7f7a6ae9543f37538d6eef69b5d81c (patch)
tree9794865aeb3664d85e9f2c0691140eb920f9f558 /modules/desktop/steam.nix
parent38231218792e8cb112c229fc6b55cdcb5caae95c (diff)
Bunch of updates:
- Fixed not having virt-manager - Added Steam - Removed old ssd mounts on apocalypse - Fixed syncthing service - Probably some spotify stuff
Diffstat (limited to '')
-rw-r--r--modules/desktop/steam.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/desktop/steam.nix b/modules/desktop/steam.nix
new file mode 100644
index 0000000..f19130c
--- /dev/null
+++ b/modules/desktop/steam.nix
@@ -0,0 +1,50 @@
+{config, pkgs,lib, ...}: {
+ options.addons = {
+ steam.enable = lib.mkEnableOption "Enable steam on this machine";
+ };
+
+ config = lib.mkIf config.addons.steam.enable (lib.mkMerge [
+ ({
+ assertions = [
+ {
+ assertion = config.addons.desktop.enable;
+ message = "You need a desktop environment to enable Steam!";
+ }
+ ];
+ programs.gamescope = {
+ enable = true;
+ capSysNice = true;
+ };
+ programs.steam = {
+ enable = true;
+ # Done according to the wiki, talks about some unexpected values in a lambda?
+ # Doesn't seem to be how overrides work
+ # TODO: Figure out how overrides work
+ # package = pkgs.steam.override {
+ # # withPrimus = true;
+ # extraPackages = with pkgs; [bumblebee glxinfo];
+ # };
+
+ # Gamescope
+ gamescopeSession.enable = true;
+
+ # Open firewall
+ remotePlay.openFirewall = true;
+ dedicatedServer.openFirewall = true;
+ localNetworkGameTransfers.openFirewall = true;
+ };
+
+ # Enable Appimage for some steam games
+ programs.appimage.enable = true;
+ programs.appimage.binfmt = true;
+ })
+
+ (lib.mkIf config.addons.dssktop.x11.enable {
+
+ })
+ (lib.mkIf config.addons.dssktop.wayland.enable {
+
+ })
+
+ ]);
+}