remove no password stuff from user factory
This commit is contained in:
@@ -27,17 +27,8 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Removes password for sudo
|
||||
security.sudo-rs = lib.mkIf isAdmin {
|
||||
enable = true;
|
||||
extraRules = [{
|
||||
users = [ "${username}" ];
|
||||
commands = lib.mkIf noPassword [{
|
||||
command = "ALL";
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
}];
|
||||
};
|
||||
|
||||
security.sudo-rs.enable = lib.mkIf isAdmin true;
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
||||
|
||||
Reference in New Issue
Block a user