nix-flakes/modules/mizukios/base/nix.nix
2026-09-10 01:54:06 +09:00

52 lines
1.1 KiB
Nix

{ overlays, ... }:
{
# Apply overlays
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfree = true;
# Nix 설정
nix.settings = {
sandbox = false;
experimental-features = [
"nix-command"
"flakes"
];
# Optimising on every store write causes heavy random I/O during builds.
# Run the optimisation separately during the scheduled maintenance window.
auto-optimise-store = false;
# Keep system builds responsive on machines with many CPU cores.
max-jobs = 4;
};
nix.optimise = {
automatic = true;
dates = [ "03:45" ];
};
nix.settings.trusted-users = [
"root"
"imnyang"
];
nix.settings = {
substituters = [
"https://nix.mizuki.my/public"
"https://vicinae.cachix.org"
];
trusted-public-keys = [
"public:SnHrtrxbCPcZujbJdgsKFeObTfRKQl5KhrI+LljtZUE="
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
];
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w"
"pnpm-10.29.2"
];
}