refactor(nix): simplify config
This commit is contained in:
parent
62b6d12d3e
commit
3b3b005fe1
1 changed files with 12 additions and 14 deletions
|
@ -18,20 +18,18 @@ in
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
nix.optimise = {
|
nix = {
|
||||||
automatic = true;
|
settings = {
|
||||||
|
trusted-users = [ "@wheel" ];
|
||||||
|
substituters = nixConfig.extra-substituters;
|
||||||
|
trusted-public-keys = nixConfig.extra-trusted-public-keys;
|
||||||
};
|
};
|
||||||
|
optimise.automatic = true;
|
||||||
nix.gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "04:00";
|
dates = "04:00";
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings = {
|
|
||||||
trusted-users = [ "@wheel" ];
|
|
||||||
substituters = nixConfig.extra-substituters;
|
|
||||||
trusted-public-keys = nixConfig.extra-trusted-public-keys;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue