1
Fork 0
satellite/hosts/nixos/common/global/sudo.nix
2023-08-13 05:15:32 +03:00

13 lines
275 B
Nix

{ pkgs, inputs, lib, ... }: {
security.sudo = {
enable = true;
extraRules = [{
commands = [{
command = lib.getExe inputs.deploy-rs.packages.${pkgs.system}.default;
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
};
}