about summary refs log tree commit diff
path: root/nix/hosts/common/nix.nix
blob: e67f1d3fb46a0c766a4b65ba800a8da0b2c60616 (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
{ pkgs, ... }: {
  nix = {
    package = pkgs.nixFlakes;

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

    settings = {
      auto-optimise-store = true;
      trusted-users = [ "@admin" "fcuny" ];
      experimental-features = [ "nix-command" "flakes" ];
    };
  };

  nixpkgs.config = {
    allowUnfree = true;
    permittedInsecurePackages = [
      "nix-2.16.2" # FIXME https://github.com/nix-community/nixd/issues/357
    ];
  };
}