summary refs log tree commit diff
path: root/modules/nix.nix
blob: cde962af9df2e7238b29d8fda5f94f399fe8b220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ self, ... }:

{
  nix = {
    optimise = {
      automatic = true;
      dates = [ "06:00" ];
    };

    gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 14d";
    };

    # add compat scripts to the environment,
    # to allow nixos-option to find the configuration
    nixPath = [
      "nixpkgs=${self}/compat"
      "nixos-config=${self}/compat/nixos"
    ];

    settings = {
      experimental-features = [ "flakes" "nix-command" ];
    };
  };
}