2023-07-11 09:12:50 -06:00
|
|
|
{pkgs, ...}: let
|
2022-08-25 12:21:35 -06:00
|
|
|
nixOptions = {
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
|
|
|
options = "--delete-older-than 10d";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable flakes
|
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
2023-07-11 09:12:50 -06:00
|
|
|
in {nix = {settings.auto-optimise-store = true;} // nixOptions;}
|