restructuring for new nix-home flake

This commit is contained in:
John Lancaster
2025-06-16 14:05:08 -05:00
parent 83db5f51ce
commit fbda875a6f
4 changed files with 124 additions and 104 deletions

View File

@@ -9,28 +9,16 @@
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} = { ... }: {
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 ./zsh.nix)
(import ./git.nix {inherit userSettings;})
];
home.packages = with pkgs; [
# Add any additional packages you want to install in your home directory
superfile
];
programs = {
ssh.enable = true;
gh.enable = true;
};
programs.ssh.enable = true;
programs.gh.enable = true;
};
};
}