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