Add steam module
This commit is contained in:
parent
dfbc3540e6
commit
2efa87f90c
|
|
@ -18,4 +18,6 @@
|
||||||
modules.opencode.enable = true;
|
modules.opencode.enable = true;
|
||||||
|
|
||||||
modules.display.scale = 2;
|
modules.display.scale = 2;
|
||||||
|
|
||||||
|
modules.steam.remotePlay.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
./plasma.nix
|
./plasma.nix
|
||||||
./sddm.nix
|
./sddm.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
./steam.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.steam;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = cfg.remotePlay.enable;
|
||||||
|
dedicatedServer.openFirewall = cfg.remotePlay.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.steam-hardware.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
./plasma.nix
|
./plasma.nix
|
||||||
./screenshot.nix
|
./screenshot.nix
|
||||||
./shell.nix
|
./shell.nix
|
||||||
|
./steam.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./vm.nix
|
./vm.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.modules.steam = {
|
||||||
|
enable = mkEnableOption "Steam";
|
||||||
|
remotePlay = {
|
||||||
|
enable = mkEnableOption "Steam Remote Play firewall rules";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -29,4 +29,6 @@
|
||||||
modules.screenshot.enable = true;
|
modules.screenshot.enable = true;
|
||||||
|
|
||||||
modules.tailscale.enable = true;
|
modules.tailscale.enable = true;
|
||||||
|
|
||||||
|
modules.steam.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue