steam: move to common config

This commit is contained in:
Katherina Walshe-Grey 2024-09-06 02:50:40 +01:00
parent 4bb4780186
commit 5290f25062
5 changed files with 13 additions and 24 deletions

View file

@ -7,5 +7,6 @@
./nginx.nix
./openssh.nix
./security.nix
./steam.nix
];
}

10
common/steam.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
programs.steam = {
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
services.joycond.enable = config.programs.steam.enable;
}

View file

@ -46,9 +46,9 @@
];
home-manager.users.qenya.imports = [ ./home.nix ];
programs.evolution.enable = true;
programs.evolution.enable = true; # not in home-manager yet; not declaratively configurable yet
programs.steam.enable = true;
qenya.services.fonts.enable = true;
qenya.services.steam.enable = true;
system.stateVersion = "23.11";
}

View file

@ -2,6 +2,5 @@
imports = [
./fonts.nix
./forgejo.nix
./steam.nix
];
}

View file

@ -1,21 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.qenya.services.steam;
in
{
options.qenya.services.steam = {
enable = mkEnableOption "Steam";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
services.joycond.enable = true;
};
}