1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00
oddlama_nix-config/config/home-manager.nix
2025-09-14 00:03:43 +02:00

40 lines
1.2 KiB
Nix

{
inputs,
config,
minimal,
...
}:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
verbose = true;
sharedModules = [
(inputs.nixos-extra-modules + "/hm-modules")
inputs.nix-index-database.homeModules.nix-index
inputs.nixvim.homeModules.nixvim
{
home.stateVersion = config.system.stateVersion;
}
];
extraSpecialArgs = {
inherit inputs minimal;
};
};
# Required even when using home-manager's zsh module since the /etc/profile load order
# is partly controlled by this. See nix-community/home-manager#3681.
# FIXME: remove once we have nushell
programs.zsh = {
enable = true;
# Disable the completion in the global module because it would call compinit
# but the home manager config also calls compinit. This causes the cache to be invalidated
# because the fpath changes in-between, causing constant re-evaluation and thus startup
# times of 1-2 seconds. Disable the completion here and only keep the home-manager one to fix it.
enableCompletion = false;
};
# But still link all completions from all packages so they
# can be found by zsh
environment.pathsToLink = [ "/share/zsh" ];
}