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";