Commit 3e2028af51ec

Vincent Demeester <vincent@sbr.pm>
2018-11-30 14:55:41
desktop: allow customizing the slim theme
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 960f444
Changed files (2)
machine
modules
profiles
machine/hokkaido.nix
@@ -6,6 +6,12 @@
   profiles = {
     dev.enable = true;
     laptop.enable = true;
+    desktop = {
+        slimTheme = {
+          url = "https://github.com/vdemeester/slim-themes/raw/master/v-theme-0.1.tar.xz";
+          sha256 = "1648krzmh6y2khbcf1zyik3znjpa8rckchbq49z1vqcg8zi587xi";
+        };
+    };
     ssh.enable = true;
     yubikey.enable = true;
   };
modules/profiles/desktop.nix
@@ -42,6 +42,13 @@ in
         description = "Enable printing with the desktop profile";
         type = types.bool;
       };
+      slimTheme = mkOption {
+        default = {
+          url = "https://github.com/vdemeester/slim-themes/raw/master/docker-key-theme-0.1.tar.xz";
+          sha256 = "127893l1nzqya0g68k8841g5lm3hlnx7b3b3h06axvplc54a1jd8";
+        };
+        description = "Slim theme to use";
+      };
     };
   };
   config = mkIf cfg.enable {
@@ -101,10 +108,7 @@ in
             enable = true;
             # Probably put this into users instead ?
             defaultUser = "vincent";
-            theme = pkgs.fetchurl {
-              url = "https://github.com/vdemeester/slim-themes/raw/master/docker-key-theme-0.1.tar.xz";
-              sha256 = "127893l1nzqya0g68k8841g5lm3hlnx7b3b3h06axvplc54a1jd8";
-            };
+            theme = pkgs.fetchurl cfg.slimTheme;
           };
         };
       };