blob: 4c432b05b05ef92360b44adc02956a1b5bb43225 [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 Grey7dfe5c62022-08-20 21:41:30 +01005 ...
6}: {
7 config = {
8 nix = {
Skyler Greyff3c6a22022-08-21 07:25:02 +01009 registry.nixpkgs.flake = nixpkgs;
Skyler Grey7dfe5c62022-08-20 21:41:30 +010010 settings = {
11 experimental-features = ["nix-command" "flakes"];
12 auto-optimise-store = true;
13 keep-outputs = true;
14 flake-registry = "${registry}/flake-registry.json";
15 };
16 gc = {
17 automatic = true;
18 options = "--delete-older-than 7d";
19 };
20 };
Skyler Greyf4a835a2022-08-20 22:30:48 +010021
22 # This value determines the NixOS release from which the default
23 # settings for stateful data, like file locations and database versions
24 # on your system were taken. It‘s perfectly fine and recommended to leave
25 # this value at the release version of the first install of this system.
26 # Before changing this value read the documentation for this option
27 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
28 system.stateVersion = "22.05"; # Did you read the comment?
29 };
30
31 home = {
32 home.stateVersion = "22.05";
Skyler Grey7dfe5c62022-08-20 21:41:30 +010033 };
34}