renamed home-manager module for import

This commit is contained in:
John Lancaster
2025-04-04 00:52:02 -05:00
parent e73e22d0b5
commit 1c27e2f318
3 changed files with 32 additions and 4 deletions

31
home-manager/default.nix Normal file
View File

@@ -0,0 +1,31 @@
{ 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;
};
};
};
}