summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-11-21 18:01:30 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-11-21 18:01:30 +0100
commitf9e4f8c54931808ba17f2ae7c6e99a8cdc04dc60 (patch)
tree76e4f88aa85b52fbe3da360e3ada6b6cd1fa4028 /config
parent7b8036351910372d13fe6746bdafc88f247a3b01 (diff)
turn on automatic optimisation and garbage collection of the nix store
Diffstat (limited to 'config')
-rw-r--r--config/store.nix12
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";
+ };
+ };
+}