Commit cd5e70c1f2e3
Changed files (1)
modules
microshift
modules/microshift/default.nix
@@ -69,17 +69,18 @@ in
# Ensure user has libvirt access
users.users.${cfg.user}.extraGroups = [ "libvirt" ];
- # Allow CRC to use sudo for admin helper without password
+ # Allow CRC to use sudo for admin helper setup without password
+ # CRC needs chown/chmod for the admin helper executable
security.sudo.extraRules = [
{
users = [ cfg.user ];
commands = [
{
- command = "/run/wrappers/bin/chown";
+ command = "${pkgs.coreutils}/bin/chown";
options = [ "NOPASSWD" ];
}
{
- command = "/run/wrappers/bin/chmod";
+ command = "${pkgs.coreutils}/bin/chmod";
options = [ "NOPASSWD" ];
}
];