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