nix-flakes/hosts/machine/kanade/modules/nix.nix
imnyang 70284509f3
Some checks failed
CI / check (push) Has been cancelled
CI / ida (push) Has been cancelled
CI / cpt (push) Has been cancelled
CI / build-nixos (ena) (push) Has been cancelled
CI / build-nixos (hako) (push) Has been cancelled
CI / build-nixos (kazusa) (push) Has been cancelled
CI / build-nixos (mizuki) (push) Has been cancelled
Initial commit
2026-07-03 16:53:49 +09:00

37 lines
793 B
Nix

{ ... }:
{
nixpkgs.config.allowUnfree = true;
nix.settings = {
sandbox = "relaxed";
experimental-features = [
"nix-command"
"flakes"
];
# Optimising during every build can race on Darwin. Run it separately instead.
auto-optimise-store = false;
trusted-users = [
"imnyang"
];
substituters = [
"https://cache.mizuki.guru"
"https://nix.mizuki.my/public"
];
trusted-public-keys = [
"cache.mizuki.guru-1:EbUC9b0ryD7BJKqfT8fl4GoS2ojLV+hI9fW1al5Whp0="
"public:SnHrtrxbCPcZujbJdgsKFeObTfRKQl5KhrI+LljtZUE="
];
};
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
interval = {
Weekday = 0;
Hour = 3;
Minute = 15;
};
options = "--delete-older-than 7d";
};
}