forked from fabian/nix_config
modularize steam
This commit is contained in:
parent
9f0e9811e3
commit
cbda46edd5
6 changed files with 34 additions and 15 deletions
|
@ -14,5 +14,6 @@
|
|||
./users.nix
|
||||
./bluetooth.nix
|
||||
./net.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
|
|
31
sys/modules/steam.nix
Normal file
31
sys/modules/steam.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.sys.steam;
|
||||
in {
|
||||
options.local.sys.steam = {
|
||||
enable = mkEnableOption "steam settings";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs;
|
||||
[
|
||||
protontricks
|
||||
protonup
|
||||
protonup-ng
|
||||
winetricks
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
graphics.enable = true;
|
||||
virtualisation.enable = true;
|
||||
androidSupport.enable = true;
|
||||
steam.enable = true;
|
||||
|
||||
users = {
|
||||
fabian = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue