1
Fork 0
satellite/hosts/nixos/common/global/cli/sudo.nix
2023-12-10 23:48:46 +01: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" ];
}];
};
}