blob: ca28c7bd149394d040f10e281a547589ec3171d9 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
config,
myPkgs,
pkgs,
...
}: let
cfg = config.soispha.nixpkgs;
myPkgsOverlay = self: super: myPkgs;
in {
options.soispha.nixpkgs = {
enable = lib.mkEnableOption "Nixpkgs config";
systemName = lib.mkOption {
description = "The name of the system.";
example = "x86_64-linux";
type = lib.types.str;
};
};
config = {
nixpkgs = lib.mkIf cfg.enable {
hostPlatform = cfg.systemName;
config = {
hostSystem = cfg.systemName;
overlays = [
myPkgsOverlay
];
config = {
# TODO: this fails because of the root tempsize, which should be increased
# contentAddressedByDefault = true;
allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"pypemicro" # required by pynitrokey
];
};
};
};
};
}
|