a bit of reorg

This commit is contained in:
John Lancaster
2025-05-26 23:26:43 -05:00
parent d6af6a8c05
commit 80cc7131e2
7 changed files with 174 additions and 140 deletions

26
nixosModules/users.nix Normal file
View File

@@ -0,0 +1,26 @@
{ config, userSettings, ... }:
{
# Uses rust-based sudo
security.sudo-rs = {
enable = true;
execWheelOnly = false;
wheelNeedsPassword = false; # allows sudo without password for those in the wheel group
};
users.users.root = {
isSystemUser = true;
extraGroups = [
"wheel" # needed for sudo without password
"docker" # needed for docker without sudo
];
openssh.authorizedKeys.keyFiles = [ /root/.ssh/authorized_keys ];
};
home-manager = {
useGlobalPkgs = true;
users.root = {
home.stateVersion = config.system.stateVersion;
imports = [ ./home-manager/git.nix ];
};
};
}