about summary refs log tree commit diff
path: root/modules/module-list.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2020-06-14 15:33:33 +0200
committeraszlig <aszlig@nix.build>2020-06-14 15:33:33 +0200
commit3100ae7cd245cd2de413e4d4159a90bb52f4ead0 (patch)
treef1b02f33bbc7ec2515c6a96f3dd7033fcf187291 /modules/module-list.nix
parent218c6422e9d43b68edb86dfbcfd51c5a5ef39724 (diff)
legosi: Use modulesPath instead of <nixpkgs/nixos>
While it's fine to use <nixpkgs> on most systems, we deliberately want
to avoid the use of <nixpkgs> to make sure that whenever we for example
run <nixpkgs/nixos/lib/eval-config.nix> with a custom "pkgs" argument we
are guaranteed that we get the version we specify.

So this is one of the reason I used <nixpkgsSrc> on Hydra instead of
<nixpkgs>, so that whenever we have such occasions where we can't
guarantee such things, the evaluation will fail.

And right now, it does:

  in job 'machines.profpatsch.legosi':

  file 'nixpkgs/nixos/modules/profiles/qemu-guest.nix' was not found in
  the Nix search path (add it using $NIX_PATH or -I), at
  .../machines/profpatsch/legosi.nix:12:5

Fortunately, there is modulesPath, which refers to
<nixpkgs/nixos/modules> of the nixpkgs version passed via "pkgs".

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Profpatsch
Diffstat (limited to 'modules/module-list.nix')
0 files changed, 0 insertions, 0 deletions