blob: 1b80b721a17dbc648be1d574163eddc00ad4a723 [file] [log] [blame]
Samuel Shuert02ffd1e2024-02-13 21:37:15 -05001{ system, ... }:
Skyler Grey4e230892024-02-13 22:58:46 +00002{
Skyler Greya0da6b22024-02-11 22:53:41 +00003 system.stateVersion = "24.05";
Skyler Greya0da6b22024-02-11 22:53:41 +00004
5 nix.settings = {
6 builders-use-substitutes = true;
7
8 substituters = [
Skyler Greya0da6b22024-02-11 22:53:41 +00009 "https://anyrun.cachix.org"
Skyler Grey625cc392024-05-25 13:06:12 +000010 "https://cache.lix.systems"
11 "https://cache.nixos.org"
12 "https://nix-community.cachix.org"
Skyler Greya0da6b22024-02-11 22:53:41 +000013 ];
14
15 trusted-public-keys = [
Skyler Greya0da6b22024-02-11 22:53:41 +000016 "anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
Skyler Grey625cc392024-05-25 13:06:12 +000017 "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
18 "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
19 "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
Skyler Greya0da6b22024-02-11 22:53:41 +000020 ];
21
Skyler Grey4e230892024-02-13 22:58:46 +000022 experimental-features = [
23 "nix-command"
24 "flakes"
25 ];
Skyler Grey625cc392024-05-25 13:06:12 +000026
27 trusted-users = [
28 "@wheel"
29 ];
Skyler Greya0da6b22024-02-11 22:53:41 +000030 };
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050031
Samuel Shuertfd0fcea2024-11-08 15:35:30 -050032 nix.gc = {
33 automatic = true;
34 options = "--delete-older-than 30d";
35 dates = "weekly";
36 };
37
Samuel Shuert02ffd1e2024-02-13 21:37:15 -050038 nixpkgs.hostPlatform = system;
Skyler Greya0da6b22024-02-11 22:53:41 +000039}