nix-config/configs/home-manager/common.nix

32 lines
711 B
Nix
Raw Permalink Normal View History

{
config,
pkgs,
lib,
...
}: {
home.stateVersion = "23.11"; # Please read the comment before changing.
# Let Home Manager install and manage itself on non-nixos systems.
programs.home-manager.enable = config.targets.genericLinux.enable;
# enable flakes on non-nixos systems
nix =
lib.mkIf config.targets.genericLinux.enable
{
package = pkgs.nix;
settings = {
experimental-features = ["nix-command" "flakes"];
max-jobs = "auto";
};
gc = {
automatic = true;
frequency = "weekly";
options = "--delete-older-than 30d";
};
};
imports = [
2024-08-07 05:21:41 +02:00
../../modules/nixos/hostopts.nix
../../modules/home-manager
];
}