steam: move to common config
This commit is contained in:
parent
4bb4780186
commit
5290f25062
|
@ -7,5 +7,6 @@
|
|||
./nginx.nix
|
||||
./openssh.nix
|
||||
./security.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
10
common/steam.nix
Normal file
10
common/steam.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.steam = {
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
|
||||
services.joycond.enable = config.programs.steam.enable;
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
imports = [
|
||||
./fonts.nix
|
||||
./forgejo.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue