blob: 4f9261f4b9e682d1cb6a1f01e0bccf13004bef77 [file] [log] [blame]
Skyler Grey7dfe5c62022-08-20 21:41:30 +01001{
2 pkgs,
3 registry,
Skyler Greyff3c6a22022-08-21 07:25:02 +01004 nixpkgs,
Skyler Grey8acd9bf2022-10-30 23:05:40 +00005 flake-utils-plus,
Skyler Grey7dfe5c62022-08-20 21:41:30 +01006 ...
7}: {
Skyler Grey8acd9bf2022-10-30 23:05:40 +00008 imports = [flake-utils-plus.nixosModules.autoGenFromInputs];
Skyler Grey7dfe5c62022-08-20 21:41:30 +01009 config = {
10 nix = {
Skyler Grey8acd9bf2022-10-30 23:05:40 +000011 generateNixPathFromInputs = true;
12 linkInputs = true;
Skyler Greyff3c6a22022-08-21 07:25:02 +010013 registry.nixpkgs.flake = nixpkgs;
Skyler Grey7dfe5c62022-08-20 21:41:30 +010014 settings = {
15 experimental-features = ["nix-command" "flakes"];
16 auto-optimise-store = true;
17 keep-outputs = true;
18 flake-registry = "${registry}/flake-registry.json";
19 };
20 gc = {
21 automatic = true;
22 options = "--delete-older-than 7d";
23 };
Skyler Grey5b753722022-08-26 07:53:33 +010024 package = pkgs.nix;
Skyler Grey7dfe5c62022-08-20 21:41:30 +010025 };
Skyler Greyf4a835a2022-08-20 22:30:48 +010026
27 # This value determines the NixOS release from which the default
28 # settings for stateful data, like file locations and database versions
29 # on your system were taken. It‘s perfectly fine and recommended to leave
30 # this value at the release version of the first install of this system.
31 # Before changing this value read the documentation for this option
32 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
33 system.stateVersion = "22.05"; # Did you read the comment?
34 };
35
36 home = {
37 home.stateVersion = "22.05";
Skyler Grey7dfe5c62022-08-20 21:41:30 +010038 };
39}