about summary refs log tree commit diff stats
path: root/system/services/steam/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-22 13:25:57 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:22 +0200
commit540707ea46ffabc561cc04f206948a9203902b78 (patch)
tree2509f822f8a2fbee568c4e451898e29b6d66c604 /system/services/steam/default.nix
parentFix(hosts/marduk): Active GNOME iso (diff)
downloadnixos-config-540707ea46ffabc561cc04f206948a9203902b78.tar.gz
nixos-config-540707ea46ffabc561cc04f206948a9203902b78.zip
Feat(system/services/steam): Modularize
Diffstat (limited to '')
-rw-r--r--system/services/steam/default.nix20
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;
+    };
   };
 }