1
0
Fork 0

Use home/target.nix for test builds

This commit is contained in:
Malte Brandy 2020-05-16 16:59:12 +02:00
parent 2b1c5e43bb
commit 51806e3323
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -22,13 +22,13 @@ in rec {
name = "test-home-config";
inherit bins;
} (haskellBody "home" ''
nix_build $ ["<home-manager/home-manager/home-manager.nix>"] ++ 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";