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