Skip to content

Commit

Permalink
feat: add nix binary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Nov 9, 2024
1 parent 054aa02 commit a0b82ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/nixos/lab-node/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ in
];
boot.tmp.cleanOnBoot = true;
nix = {
# TODO: Pretty sure this defaults to 0 anyways...
settings.cores = 0;
settings = {
trusted-public-keys = lib.mkAfter ["fat-controller.local:nIUqbWD1JiFbdLsKigseHZgj5T8e4Xja0vE0kS1AtHY="];
auto-optimise-store = true;
substituters = ["http://fat-controller.local:5000"];
};
optimise.automatic = true;
gc.automatic = true;
# optimised for noninteractive
Expand Down
5 changes: 5 additions & 0 deletions modules/nixos/monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ in {
};
};
config.services = lib.mkIf config.services.monitoring.enable {
nix-serve = {
enable = true;
openFirewall = true;
secretKeyFile = "/var/lib/nix-serve/cache-priv-key.pem";
};
kthxbye = {
enable = true;
port = 9099;
Expand Down

0 comments on commit a0b82ee

Please sign in to comment.