From 51806e33231d3d534fdf358e9333e45516b6f266 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sat, 16 May 2020 16:59:12 +0200 Subject: [PATCH] Use home/target.nix for test builds --- lib/test.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test.nix b/lib/test.nix index b58858c3..d632a09c 100644 --- a/lib/test.nix +++ b/lib/test.nix @@ -22,13 +22,13 @@ in rec { name = "test-home-config"; inherit bins; } (haskellBody "home" '' - nix_build $ [""] ++ paths ++ ["--argstr", "confPath", [i|#{configDir}/home.nix|], "--argstr", "confAttr", hostname, "--out-link", [i|result-home-manager-#{hostname}|], "-A", "activationPackage"] ++ fmap toString args + nix_build $ paths ++ [ [i|#{configDir}/home/target.nix|], "-A", hostname, "-o", [i|result-home-manager-#{hostname}|]] ++ fmap toString args ''); repoSrc = "git@hera.m-0.eu:nixos-config"; configPath = "/etc/nixos"; systems = [ "apollo" "hera" ]; - homes = pkgs.lib.attrNames (import ../home.nix); + homes = pkgs.lib.attrNames (import ../home/modes.nix); keys = [ "default" "apollo" "hera" ]; test-config = writeHaskellScript { name = "test-config";