Commit 7372e0a2f0e9

Vincent Demeester <vincent@sbr.pm>
2018-11-01 15:52:16
profiles: add gamimg profile
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1f72e1b
modules/profiles/gaming.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+  cfg = config.profiles.gaming;
+in
+{
+  options = {
+    profiles.gaming = {
+      enable = mkOption {
+        default = false;
+        description = "Enable gaming profile";
+        type = types.bool;
+      };
+    };
+  };
+  config = mkIf cfg.enable {
+    home.packages = with pkgs; [
+      steam
+      discord
+    ];
+  };
+}
modules/module-list.nix
@@ -13,6 +13,7 @@
     ./profiles/dev.rust.nix
     ./profiles/emacs.nix
     ./profiles/fish.nix
+    ./profiles/gaming.nix
     ./profiles/git.nix
     ./profiles/i3.nix
     ./profiles/laptop.nix
gaming.nix
@@ -1,8 +0,0 @@
-{ pkgs, prefix, ...}:
-
-{
-  home.packages = with pkgs; [
-    steam
-    discord
-  ];
-}
shikoku.nix
@@ -3,11 +3,11 @@
 {
   imports = [
     ./desktop.nix
-    ./gaming.nix
     ./devops.nix
     ./openshift.nix
   ];
   profiles.desktop.enable = true;
+  profiles.gaming.enable = true;
   profiles.dev = {
     go.enable = true;
     haskell.enable = true;