Files
ad-nix/home-manager/home.nix
John Lancaster 1c9f2b54df added zsh
2025-04-03 23:56:48 -05:00

31 lines
850 B
Nix

{ lib, systemSettings, userSettings, ... }:
{
security.sudo-rs = {
enable = true;
execWheelOnly = false;
wheelNeedsPassword = false;
};
users.users.${userSettings.userName} = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
openssh.authorizedKeys.keyFiles = [ ../secrets/authorized_keys ];
};
home-manager = {
useGlobalPkgs = true;
users.${userSettings.userName} = { ... }: {
home.stateVersion = systemSettings.stateVersion;
home.homeDirectory = lib.mkForce "${userSettings.adHome}";
systemd.user.startServices = "sd-switch"; # helps with handling systemd services when switching
imports = [
(import ./git.nix {inherit userSettings;})
(import ./zsh.nix {inherit userSettings;})
];
programs = {
ssh.enable = true;
};
};
};
}