Add nix configuration

Make wheel group trusted users in preparation for colmena.
This commit is contained in:
yuri 2023-09-11 21:40:21 +02:00 committed by julian
parent 4193e65a04
commit 10702979f1
2 changed files with 17 additions and 0 deletions

View file

@ -5,6 +5,7 @@
./default-host-platform.nix ./default-host-platform.nix
./default-state-version.nix ./default-state-version.nix
./localization.nix ./localization.nix
./nix.nix
./ssh.nix ./ssh.nix
./users.nix ./users.nix
]; ];

16
config/common/nix.nix Normal file
View file

@ -0,0 +1,16 @@
{ ... }:
{
nix = {
settings = {
trusted-users = [ "@wheel" ];
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
}