Add nix configuration
Make wheel group trusted users in preparation for colmena.
This commit is contained in:
parent
4193e65a04
commit
10702979f1
|
@ -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
16
config/common/nix.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue