Files
ad-nix/home-manager/default.nix
2025-04-04 00:52:02 -05:00

32 lines
891 B
Nix

{ lib, pkgs, 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 ];
shell = "${pkgs.zsh}/bin/zsh";
};
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;
};
};
};
}