commit 1713ff651ea620e1e6027d8c4924a9251419e794
parent 8a741ce35c18ecb5b6a287d164dac471ea2d7b23
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 13 May 2020 13:08:54 +0200
profiles.openshift: add a crc option…
… and use it on wakasu
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/machines/wakasu.nix b/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;
diff --git a/modules/profiles/openshift.nix b/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
+ ];
+ }
+ )
]);
}