nix-flakes/hosts/machine/kanade/modules/nix.nix
2026-08-18 10:14:30 +09:00

35 lines
686 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://nix.mizuki.my/public"
];
trusted-public-keys = [
"public:SnHrtrxbCPcZujbJdgsKFeObTfRKQl5KhrI+LljtZUE="
];
};
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
interval = {
Weekday = 0;
Hour = 3;
Minute = 15;
};
options = "--delete-older-than 7d";
};
}