diff options
author | Soispha <soispha@vhack.eu> | 2023-04-22 13:25:57 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:31:22 +0200 |
commit | 540707ea46ffabc561cc04f206948a9203902b78 (patch) | |
tree | 2509f822f8a2fbee568c4e451898e29b6d66c604 /system/services/steam | |
parent | Fix(hosts/marduk): Active GNOME iso (diff) | |
download | nixos-config-540707ea46ffabc561cc04f206948a9203902b78.tar.gz nixos-config-540707ea46ffabc561cc04f206948a9203902b78.zip |
Feat(system/services/steam): Modularize
Diffstat (limited to 'system/services/steam')
-rw-r--r-- | system/services/steam/default.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/system/services/steam/default.nix b/system/services/steam/default.nix index 2efa54e2..d4c4be63 100644 --- a/system/services/steam/default.nix +++ b/system/services/steam/default.nix @@ -1,6 +1,20 @@ # vim: ts=2 -{lib, ...}: { - programs.steam = { - enable = true; +{ + lib, + config, + ... +}: let + cfg = config.soispha.services.steam; +in { + options.soispha.services.steam = { + enable = lib.mkOption { + default = true; + description = lib.mdDoc "Enable Steam"; + }; + }; + config = lib.mkIf cfg.enable { + programs.steam = { + enable = true; + }; }; } |