xin/system/nix-config.nix

18 lines
351 B
Nix
Raw Normal View History

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