about summary refs log tree commit diff stats
path: root/modules/by-name/ni/nixpkgs/config.nix
blob: 1a24444d8129507086b80449e1eeb0e6c362bb38 (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
{
  cfg,
  myPkgs,
  lib,
  ...
}: let
  myPkgsOverlay = self: super: myPkgs;
in {
  nixpkgs = {
    hostPlatform = cfg.systemName;

    overlays = [
      myPkgsOverlay
    ];

    config = {
      # TODO: this fails because of the root tempsize, which should be increased
      # contentAddressedByDefault = true;

      hostSystem = cfg.systemName;

      allowUnfreePredicate = pkg:
        builtins.elem (lib.getName pkg) [
          "pypemicro" # required by pynitrokey
        ];
    };
  };
}