Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
| 2 | , registry |
| 3 | , nixpkgs |
Skyler Grey | b6fac90 | 2023-03-07 13:15:02 +0000 | [diff] [blame] | 4 | , username |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 5 | , flake-utils-plus |
| 6 | , ... |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 7 | }: { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 8 | imports = [ flake-utils-plus.nixosModules.autoGenFromInputs ]; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 9 | config = { |
| 10 | nix = { |
Skyler Grey | 8acd9bf | 2022-10-30 23:05:40 +0000 | [diff] [blame] | 11 | generateNixPathFromInputs = true; |
| 12 | linkInputs = true; |
Skyler Grey | ff3c6a2 | 2022-08-21 07:25:02 +0100 | [diff] [blame] | 13 | registry.nixpkgs.flake = nixpkgs; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 14 | settings = { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 15 | experimental-features = [ "nix-command" "flakes" ]; |
Skyler Grey | b6fac90 | 2023-03-07 13:15:02 +0000 | [diff] [blame] | 16 | trusted-users = [ username ]; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 17 | auto-optimise-store = true; |
| 18 | keep-outputs = true; |
Skyler Grey | 1510b99 | 2023-01-25 21:38:20 +0000 | [diff] [blame] | 19 | keep-going = true; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 20 | flake-registry = "${registry}/flake-registry.json"; |
| 21 | }; |
| 22 | gc = { |
| 23 | automatic = true; |
| 24 | options = "--delete-older-than 7d"; |
| 25 | }; |
Skyler Grey | 5b75372 | 2022-08-26 07:53:33 +0100 | [diff] [blame] | 26 | package = pkgs.nix; |
Skyler Grey | 1510b99 | 2023-01-25 21:38:20 +0000 | [diff] [blame] | 27 | nixPath = [ "nixpkgs=${nixpkgs}" ]; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 28 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 29 | |
| 30 | # This value determines the NixOS release from which the default |
| 31 | # settings for stateful data, like file locations and database versions |
| 32 | # on your system were taken. It‘s perfectly fine and recommended to leave |
| 33 | # this value at the release version of the first install of this system. |
| 34 | # Before changing this value read the documentation for this option |
| 35 | # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 36 | system.stateVersion = "22.05"; # Did you read the comment? |
| 37 | }; |
| 38 | |
| 39 | home = { |
| 40 | home.stateVersion = "22.05"; |
Skyler Grey | 7dfe5c6 | 2022-08-20 21:41:30 +0100 | [diff] [blame] | 41 | }; |
| 42 | } |