From 540707ea46ffabc561cc04f206948a9203902b78 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 22 Apr 2023 13:25:57 +0200 Subject: Feat(system/services/steam): Modularize --- system/services/steam/default.nix | 20 +++++++++++++++++--- 1 file 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; + }; }; } -- cgit 1.4.1