blob: fba0efc61c40203565a2cb4809dfe0e65cde8e79 (
plain)
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
|
{
lib,
pkgs,
inputs,
...
}:
let
flakeInputs = pkgs.linkFarm "flake-inputs" (
lib.mapAttrs (lib.const (flake: flake.outPath)) inputs
);
in
{
nix = {
channel.enable = lib.mkDefault false;
nixPath = lib.mkForce (
lib.mapAttrsToList (name: lib.const "${name}=/run/current-system/inputs/${name}") inputs
);
settings.trusted-users = [
"@wheel"
];
};
nixpkgs.config.allowAliases = false;
system.extraSystemBuilderCmds = ''
ln -s ${flakeInputs} $out/inputs
'';
}
|