base: move basic Nix configuration

This commit is contained in:
Antoine Martin 2021-02-19 21:54:30 +01:00
parent cfb135e118
commit 67523e7e31
3 changed files with 23 additions and 20 deletions

22
base/nix.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
binaryCaches = [
"https://alarsyo.cachix.org"
];
binaryCachePublicKeys = [
"alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk="
];
gc = {
automatic = true;
dates = "03:15";
options = "--delete-older-than 30d";
};
};
}