summary refs log tree commit diff stats
path: root/modules/by-name/ni/nixconfig/module.nix
blob: a5bf950ca07857aeccab183d0babc3b1ffb833f9 (plain) (blame)
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
28
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.nixconfig;
in {
  options.vhack.nixconfig = {
    enable = lib.mkEnableOption "sophisticated nix settings";
  };
  config = lib.mkIf cfg.enable {
    nix = {
      #    gc = {
      #      automatic = true;
      #      dates = "daily";
      #      options = "--delete-older-than 3";
      #    };
      settings = {
        auto-optimise-store = true;
        experimental-features = ["nix-command" "flakes"];
        trusted-users = [
          "root"
          "@wheel"
        ];
      };
    };
  };
}