Commit 1713ff651ea6

Vincent Demeester <vincent@sbr.pm>
2020-05-13 13:08:54
profiles.openshift: add a crc option…
… and use it on wakasu Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 8a741ce
Changed files (2)
machines
modules
machines/wakasu.nix
@@ -34,7 +34,10 @@
     kind = true;
     nr = true;
   };
-  profiles.containers.openshift.enable = true;
+  profiles.containers.openshift = {
+    enable = true;
+    crc = true;
+  };
   programs = {
     google-chrome.enable = true;
     podman.enable = true;
modules/profiles/openshift.nix
@@ -21,6 +21,7 @@ in
           type = types.package;
         };
       };
+      crc = mkEnableOption "Enable crc";
     };
   };
   config = mkIf cfg.enable (mkMerge [
@@ -41,5 +42,12 @@ in
         ];
       }
     )
+    (
+      mkIf cfg.crc {
+        home.packages = with pkgs; [
+          my.crc
+        ];
+      }
+    )
   ]);
 }