faucet(steam): add steam program and directories
This commit is contained in:
parent
066c58bda9
commit
14c9f3ff8a
1 changed files with 23 additions and 0 deletions
23
faucet/steam/default.nix
Normal file
23
faucet/steam/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, ... }: with lib; let
|
||||||
|
cfg = config.faucet.steam;
|
||||||
|
in {
|
||||||
|
options.faucet.steam = {
|
||||||
|
enable = mkEnableOption "steam software and environment";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
};
|
||||||
|
|
||||||
|
users.home.persist.directories = [
|
||||||
|
".local/share/Steam"
|
||||||
|
".steam"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue