From ea91c95ecff099ef81d0023e56627d289dd8b125 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 29 Apr 2015 06:59:14 +0200 Subject: machines: Work around NixOS/nixpkgs#7272. This causes an infinite recursion on evaluation if we import something from a module argument. So until we have an importsArgs module attribute we're going to refer to ../../nixpkgs-path.nix. Signed-off-by: aszlig --- machines/aszlig/arilou.nix | 4 +++- machines/labnet/labtop.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'machines') diff --git a/machines/aszlig/arilou.nix b/machines/aszlig/arilou.nix index 47664a18..882893d8 100644 --- a/machines/aszlig/arilou.nix +++ b/machines/aszlig/arilou.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, modulesPath, ... }: +{ config, pkgs, lib, ... }: with lib; @@ -6,6 +6,8 @@ let rootUUID = "e9c95c74-e4cf-41f6-bb45-baf8dd579217"; swapUUID = "4d172959-5cfd-4164-a46e-fa7be0dfd03a"; diskID = "usb-Lexar_USB_Flash_Drive_201303211246293590E4-0:0"; + + modulesPath = "${import ../../nixpkgs-path.nix}/nixos/modules"; in { vuizvui.user.aszlig.profiles.workstation.enable = true; imports = [ "${modulesPath}/profiles/all-hardware.nix" ]; diff --git a/machines/labnet/labtop.nix b/machines/labnet/labtop.nix index ac11f224..542f0576 100644 --- a/machines/labnet/labtop.nix +++ b/machines/labnet/labtop.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, modulesPath, ... }: +{ pkgs, lib, ... }: let greybird = pkgs.stdenv.mkDerivation { @@ -23,6 +23,8 @@ let ''; }; + modulesPath = "${import ../../nixpkgs-path.nix}/nixos/modules"; + in { imports = [ "${modulesPath}/installer/scan/not-detected.nix" ]; -- cgit 1.4.1