optimise nix store
This commit is contained in:
@ -161,8 +161,16 @@
|
|||||||
# Allow installation of proprietary/unfree software
|
# Allow installation of proprietary/unfree software
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Enable modern Nix features (flakes and new CLI)
|
nix = {
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
settings.experimental-features = ["nix-command" "flakes"]; # Enable modern Nix features (flakes and new CLI)
|
||||||
|
|
||||||
|
optimise = {
|
||||||
|
# Optimise the Nix store automatically to recover space
|
||||||
|
automatic = true;
|
||||||
|
dates = ["03:45"]; # Optional; allows customizing optimisation schedule
|
||||||
|
persistent = true; # Run missed optimisations
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# ================================
|
# ================================
|
||||||
# AUTOMATIC MAINTENANCE
|
# AUTOMATIC MAINTENANCE
|
||||||
|
Reference in New Issue
Block a user