mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Refactor Systems
This commit is contained in:
parent
4d7de09ec4
commit
9c32ed314c
8 changed files with 101 additions and 70 deletions
21
modules/programs/steam/default.nix
Normal file
21
modules/programs/steam/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ options, config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
let cfg = config.custom.programs.steam;
|
||||
in
|
||||
{
|
||||
options.custom.programs.steam = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable Steam.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.steam-hardware.enable = true;
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue