From 3100ae7cd245cd2de413e4d4159a90bb52f4ead0 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 14 Jun 2020 15:33:33 +0200 Subject: legosi: Use modulesPath instead of While it's fine to use on most systems, we deliberately want to avoid the use of to make sure that whenever we for example run with a custom "pkgs" argument we are guaranteed that we get the version we specify. So this is one of the reason I used on Hydra instead of , 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 of the nixpkgs version passed via "pkgs". Signed-off-by: aszlig Cc: @Profpatsch --- machines/profpatsch/legosi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'machines/profpatsch/legosi.nix') diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix index 9508cbde..fc3da387 100644 --- a/machines/profpatsch/legosi.nix +++ b/machines/profpatsch/legosi.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ modulesPath, config, pkgs, lib, ... }: let myLib = import ./lib.nix { inherit pkgs lib; }; @@ -9,7 +9,7 @@ let in { imports = [ ./base-server.nix - + "${modulesPath}/profiles/qemu-guest.nix" ]; config = { -- cgit 1.4.1