diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-11-21 18:01:30 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-11-21 18:01:30 +0100 |
| commit | f9e4f8c54931808ba17f2ae7c6e99a8cdc04dc60 (patch) | |
| tree | 76e4f88aa85b52fbe3da360e3ada6b6cd1fa4028 /config/store.nix | |
| parent | 7b8036351910372d13fe6746bdafc88f247a3b01 (diff) | |
turn on automatic optimisation and garbage collection of the nix store
Diffstat (limited to 'config/store.nix')
| -rw-r--r-- | config/store.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/store.nix b/config/store.nix new file mode 100644 index 0000000..e5506fa --- /dev/null +++ b/config/store.nix @@ -0,0 +1,12 @@ +{ ... }: + +{ + nix = { + optimise.automatic = true; + gc = { + automatic = true; + dates = "daily"; + options = "--delete-old"; + }; + }; +} |
