snowflake/modules/nix.nix
notohh 0da60c1d19
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
nix: move warn-dirty
2023-06-19 06:33:46 -04:00

36 lines
970 B
Nix

{pkgs, ...}: {
nixpkgs = {
config = {
allowUnfree = true;
};
};
nix = {
package = pkgs.nixFlakes;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
settings = {
extra-experimental-features = ["flakes" "nix-command"];
warn-dirty = false;
auto-optimise-store = true;
builders-use-substitutes = true;
keep-derivations = true;
keep-outputs = true;
allowed-users = ["@wheel"];
trusted-users = ["root" "@wheel"];
substituters = [
"https://hyprland.cachix.org"
"https://cache.nixos.org"
"https://jakestanger.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"jakestanger.cachix.org-1:VWJE7AWNe5/KOEvCQRxoE8UsI2Xs2nHULJ7TEjYm7mM="
];
};
};
}