security: Allow alex to run nixos-rebuild
This commit is contained in:
parent
f9bae66f71
commit
f8f2d0b73f
1 changed files with 14 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue