]> git.scottworley.com Git - syncthing-autoregister/commitdiff
Prefer modulesPath over <nixos/nixos/modules>
authorScott Worley <scottworley@scottworley.com>
Mon, 3 Jun 2024 07:31:35 +0000 (00:31 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 3 Jun 2024 07:31:35 +0000 (00:31 -0700)
lib/test-nixos-rebuild-switch-config.nix

index a31a39e2d5966f7867d019b6c5441d791a75a527..36928b2923d86cc861e35989c661e11d416e9889 100644 (file)
@@ -1,9 +1,9 @@
-{ lib, pkgs, ... }: {
+{ lib, pkgs, modulesPath, ... }: {
   imports = [
-    <nixos/nixos/modules/installer/cd-dvd/channel.nix>
-    <nixos/nixos/modules/profiles/base.nix>
-    <nixos/nixos/modules/testing/test-instrumentation.nix>
-    <nixos/nixos/modules/virtualisation/qemu-vm.nix>
+    (modulesPath + "/installer/cd-dvd/channel.nix")
+    (modulesPath + "/profiles/base.nix")
+    (modulesPath + "/testing/test-instrumentation.nix")
+    (modulesPath + "/virtualisation/qemu-vm.nix")
   ];
 
   nix.binaryCaches = lib.mkForce [ ];