fix sudo configuration

This commit is contained in:
2026-06-06 21:07:01 +08:00
parent 2f90d7f0d0
commit 00fd2e7ab9
+4 -1
View File
@@ -44,7 +44,10 @@ in
extraRules = [ extraRules = [
{ {
users = [ "imxyy" ]; users = [ "imxyy" ];
commands = [ "ALL" ] ++ (lib.optionals (hostname == "imxyy-nix") [ "NOPASSWD" ]); commands = lib.singleton {
command = "ALL";
options = lib.optionals (hostname == "imxyy-nix") [ "NOPASSWD" ];
};
} }
]; ];
}; };