Add Steam
This commit is contained in:
parent
c0db4f91c0
commit
2d60be7bf3
5 changed files with 28 additions and 2 deletions
|
|
@ -57,6 +57,7 @@
|
||||||
apps = {
|
apps = {
|
||||||
dev.enable = true;
|
dev.enable = true;
|
||||||
visual.enable = true;
|
visual.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
terminal = {
|
terminal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,7 @@
|
||||||
./visual/firefox.nix
|
./visual/firefox.nix
|
||||||
|
|
||||||
./server.nix
|
./server.nix
|
||||||
|
|
||||||
|
./gaming.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
modules/apps/gaming.nix
Normal file
24
modules/apps/gaming.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.horseman.apps.gaming;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
horseman.apps.gaming = {
|
||||||
|
enable = mkEnableOption "Games and things for games";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.horseman.terminal.zsh;
|
cfg = config.horseman.apps.terminal.zsh;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.apps.terminal.zsh = {
|
horseman.apps.terminal.zsh = {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
./apps
|
./apps
|
||||||
./hardware
|
./hardware
|
||||||
./network
|
./network
|
||||||
./terminal
|
|
||||||
./wm
|
./wm
|
||||||
./users
|
./users
|
||||||
./boot
|
./boot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue