faucet(steam): add steam program and directories

This commit is contained in:
514fpv 2024-01-07 13:58:29 +08:00
parent 066c58bda9
commit 14c9f3ff8a
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

23
faucet/steam/default.nix Normal file
View 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"
];
};
}