Add Zig to Flakes and add garbage collection

This commit is contained in:
Bart van der Braak 2024-11-04 15:57:43 +01:00
parent 7b06b8185d
commit 5e043f550b
4 changed files with 102 additions and 1 deletions

View file

@ -39,6 +39,19 @@
];
};
# Optimization & Garbage Collection
# Optimize Nix-Store During Rebuilds
# NOTE: Optimizes during builds - results in slower builds
nix.settings.auto-optimise-store = true;
# Purge Unused Nix-Store Entries
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Enable Nix Flakes and experimental features
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];