Commit 84d073eaa279
Changed files (1)
modules
microshift
modules/microshift/default.nix
@@ -69,6 +69,23 @@ in
# Ensure user has libvirt access
users.users.${cfg.user}.extraGroups = [ "libvirt" ];
+ # Allow CRC to use sudo for admin helper without password
+ security.sudo.extraRules = [
+ {
+ users = [ cfg.user ];
+ commands = [
+ {
+ command = "/run/wrappers/bin/chown";
+ options = [ "NOPASSWD" ];
+ }
+ {
+ command = "/run/wrappers/bin/chmod";
+ options = [ "NOPASSWD" ];
+ }
+ ];
+ }
+ ];
+
environment.systemPackages = with pkgs; [
crc
kubectl