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 {
|
security.sudo-rs.enable = lib.mkIf isAdmin true;
|
||||||
enable = true;
|
|
||||||
extraRules = [{
|
|
||||||
users = [ "${username}" ];
|
|
||||||
commands = lib.mkIf noPassword [{
|
|
||||||
command = "ALL";
|
|
||||||
options = [ "NOPASSWD" ];
|
|
||||||
}];
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
||||||
|
|||||||
Reference in New Issue
Block a user