move steam to its own file

This commit is contained in:
Andreas Zweili 2022-01-03 17:51:24 +01:00
parent 44ae2dcdca
commit f159fa2632
2 changed files with 12 additions and 5 deletions

View File

@ -4,8 +4,9 @@
imports = [
./common.nix
./docker.nix
./restic
./droidcam
./restic
./steam
./xonsh
];
@ -45,10 +46,6 @@
sound.enable = true;
hardware.pulseaudio.enable = true;
# enable steam
programs.steam.enable = true;
hardware.steam-hardware.enable = true;
# enable lockscreen
programs.xss-lock = {
enable = true;

10
modules/steam/default.nix Normal file
View File

@ -0,0 +1,10 @@
{ ... }:
{
programs.steam.enable = true;
hardware.steam-hardware.enable = true;
networking.firewall = {
allowedTCPPorts = [ 27036 ];
allowedUDPPorts = [ 27031 ];
};
}