mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-07-11 18:49:10 +00:00
Add Zig to Flakes and add garbage collection
This commit is contained in:
parent
7b06b8185d
commit
5e043f550b
4 changed files with 102 additions and 1 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue