nix-config/modules/home-manager/default.nix
Gabe Venberg fe1ed3e1be IN PROGRESS COMMIT. does not currently build.
Attempting to make nixos config that incorperates a non-nixos HM config.
2024-04-03 17:50:53 -05:00

22 lines
514 B
Nix

{
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"];
settings.max-jobs = "auto";
gc.automatic = true;
};
}