fix sudo configuration
This commit is contained in:
@@ -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" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user