mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
no password for rebuild
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
{ config, inputs, ... }:
|
||||
let autoGarbageCollector = config.var.autoGarbageCollector;
|
||||
in {
|
||||
security.sudo.extraRules = [{
|
||||
users = [ config.var.username ];
|
||||
commands = [{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild";
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
}];
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = true;
|
||||
|
||||
Reference in New Issue
Block a user