mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-09 16:24:28 +08:00
pureintent: allow passwordless activate rebuild
This commit is contained in:
parent
93018aa75b
commit
040cf1e004
2 changed files with 16 additions and 3 deletions
|
|
@ -8,6 +8,19 @@ in
|
|||
{
|
||||
nixos-unified.sshTarget = "srid@pureintent";
|
||||
# nixos-unified.sshTarget = "srid@192.168.2.134";
|
||||
nixos-unified.localPrivilegeMode = "sudo-nixos-rebuild";
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ flake.config.me.username ];
|
||||
commands = [
|
||||
{
|
||||
command = "/run/current-system/sw/bin/nixos-rebuild switch *";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
imports = [
|
||||
self.nixosModules.default
|
||||
|
|
|
|||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -1006,11 +1006,11 @@
|
|||
},
|
||||
"nixos-unified_2": {
|
||||
"locked": {
|
||||
"lastModified": 1764076447,
|
||||
"narHash": "sha256-dpkdOPPCWaFtDoxVAtVaprtPX6jGl8o30EBc1gWBOnQ=",
|
||||
"lastModified": 1776962958,
|
||||
"narHash": "sha256-aSMNDRaVO5HzAKXuK8jeeSrF5HW36sBCU5E5rBnOrbo=",
|
||||
"owner": "srid",
|
||||
"repo": "nixos-unified",
|
||||
"rev": "90171c6936a8332ede17e09e337a0e71f4e659b1",
|
||||
"rev": "162fc343504645dbeb4f93ca17064812c4fc4423",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue