diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 46bf4a5..d6d4e3e 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -19,12 +19,20 @@ sops.defaultSopsFile = ./secrets.yaml; sops.defaultSopsFormat = "yaml"; - # ── Nix settings ───────────────────────────────────────────────────────────── + # ── Nix settings & maintenance ─────────────────────────────────────────────── nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Pin nixpkgs registry to the flake input (avoids GitHub API calls from the CLI) nix.registry.nixpkgs.flake = inputs.nixpkgs; + # Automated garbage collection and store hardlink deduplication + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; + nix.optimise.automatic = true; + nixpkgs.config.allowUnfree = true; # ── Regional & locale settings ───────────────────────────────────────────────