Compare commits
1 commit
4ae664d0a8
...
6325f6266e
| Author | SHA1 | Date | |
|---|---|---|---|
| 6325f6266e |
2 changed files with 40 additions and 1 deletions
|
|
@ -1 +1,10 @@
|
||||||
{}
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./steam.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
||||||
30
nixos/steam.nix
Normal file
30
nixos/steam.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue