remove no password stuff from user factory

This commit is contained in:
John Lancaster
2026-03-29 18:47:05 -05:00
parent aebe978684
commit 311ab760ea
+2 -11
View File
@@ -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