1
Fork 0
satellite/hosts/nixos/common/global/sudo.nix

13 lines
275 B
Nix
Raw Normal View History

2023-08-13 04:15:32 +02:00
{ pkgs, inputs, lib, ... }: {
security.sudo = {
enable = true;
extraRules = [{
commands = [{
command = lib.getExe inputs.deploy-rs.packages.${pkgs.system}.default;
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
};
}