fix syntax issue

This commit is contained in:
2025-04-21 23:25:48 +08:00
parent 11e4e1b850
commit ae9ad56134

View File

@@ -1,5 +1,8 @@
{ pkgs, username, ... }:
let
binPath = "${pkgs.nix}/bin";
in
{
nix.settings.trusted-users = [ username ];
@@ -23,8 +26,6 @@
};
};
binPath = "${pkgs.nix}/bin";
# DO NOT promote the specified user to input password for `nix-store` and `nix-copy-closure`
security.sudo = {
# wheelNeedsPassword = false;
@@ -46,7 +47,7 @@
options = [ "NOPASSWD" ];
}
{
command = "${binPath}/bin/poweroff";
command = "${binPath}/poweroff";
options = [ "NOPASSWD" ];
}
];