aboutsummaryrefslogtreecommitdiff
path: root/share/system/common.nix
blob: dbd3f8f53f422ff4ea1708eaa48931500f089b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Common system settings shared across every machine
# Used mostly for adding substituters and such
{ ... }:
{
  nix = {
    settings = {
      experimental-features = [
        "nix-command"
        "flakes"
      ];
      auto-optimise-store = true;
      trusted-public-keys = [
        "nix-cache.sorre.xyz:nEDyGXFMCNc1CuxcwbCbfoyGUumoYT6opiUeIGVrp5o="
      ];
    };
    registry = {
      "templates" = {
        from = {
          type = "indirect";
          id = "templates";
        };
        to = {
          type = "git";
          url = "https://codeberg.org/miranb/nix-templates";
        };
      };
      "nixos-config" = {
        from = {
          type = "indirect";
          id = "nixos-config";
        };
        to = {
          type = "git";
          url = "ssh://forgejo@git.sorre.xyz/miranb/nixos-config.git";
        };
      };
    };
  };
}