nixos-config/base/nix.nix

27 lines
588 B
Nix
Raw Normal View History

2021-02-19 21:54:30 +01:00
{ pkgs, ... }:
{
2021-04-16 21:33:48 +02:00
nixpkgs.config.allowUnfree = true;
2021-02-19 21:54:30 +01:00
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
binaryCaches = [
"https://alarsyo.cachix.org"
2021-04-17 20:39:01 +02:00
"https://nix-community.cachix.org"
2021-02-19 21:54:30 +01:00
];
binaryCachePublicKeys = [
"alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk="
2021-04-17 20:39:01 +02:00
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2021-02-19 21:54:30 +01:00
];
gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 30d";
};
};
}