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

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./nix.nix
./users.nix
];
}

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";
};
};
}

View file

@ -121,24 +121,4 @@ in
boot.supportedFilesystems = [ "btrfs" ];
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";
};
};
}