15 lines
292 B
Nix
15 lines
292 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config.security.sudo = {
|
|
enable = true;
|
|
execWheelOnly = true;
|
|
extraRules = [{
|
|
groups = [ "wheel" ];
|
|
commands = [{
|
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
|
options = [ "NOPASSWD" ];
|
|
}];
|
|
}];
|
|
};
|
|
}
|