Put every variables in top of the file for easy copy to another config

This commit is contained in:
Hadi
2024-10-09 15:12:50 +02:00
parent 55c7c7068a
commit 0bd55fdc10
27 changed files with 298 additions and 301 deletions

View File

@@ -1,4 +1,6 @@
{ config, ... }: {
{ config, ... }:
let autoGarbageCollector = config.var.autoGarbageCollector;
in {
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
@@ -16,7 +18,7 @@
];
};
gc = {
automatic = config.var.autoGarbageCollector;
automatic = autoGarbageCollector;
persistent = true;
dates = "weekly";
options = "--delete-older-than 7d";