security: Allow alex to run nixos-rebuild

This commit is contained in:
Alexander Kobjolke 2021-07-14 18:55:51 +02:00
parent f9bae66f71
commit f8f2d0b73f

View file

@ -61,6 +61,20 @@
email = "alex@jakalx.net";
};
security.sudo = {
enable = true;
execWheelOnly = true;
extraRules = [
{ groups = [ "wheel" ];
commands = [
{ command = "/run/current-system/sw/bin/nixos-rebuild switch";
options = [ "NOPASSWD" ];
}
];
}
];
};
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {