nixos-config/system/nix.nix

21 lines
462 B
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
{
2020-09-23 10:36:46 +02:00
# for flakes support
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
2019-10-19 12:55:35 +02:00
nix.autoOptimiseStore = true;
nix.gc = {
automatic = true;
2019-11-04 10:01:05 +01:00
dates = "10:00";
2019-10-19 12:55:35 +02:00
options = "--delete-older-than 30d";
};
2021-01-16 17:52:54 +01:00
nix.binaryCaches = [ "https://nixcache.reflex-frp.org" ];
nix.binaryCachePublicKeys =
[ "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
2019-10-19 12:55:35 +02:00
}