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

    gc = {
      user = "root";
      automatic = true;
      interval = { Weekday = 0; Hour = 2; Minute = 0; };
      options = "--delete-older-than 30d";
    };

    settings = {
      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
    ];
  };
}