Skip to content

Commit

Permalink
Merge #261
Browse files Browse the repository at this point in the history
261: profilesTest/mkHosts: include host's configuration r=blaggacao a=Pacman99

Now that profiles test is done dynamically - first available host - we likely need to include the host configuration itself. I have profiles that depend on the domain being set, which how I ran into this, and I think other problems might occur if we don't include the full host in the profiles test.

targeting core, since its a small bug fix and was planned to make into a release.

Co-authored-by: Pacman99 <[email protected]>
  • Loading branch information
bors[bot] and Pacman99 authored Apr 24, 2021
2 parents 7a825bb + 832d3bd commit 82b73cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/devos/mkHosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ let
lib = {
lib = { inherit specialArgs; };
lib.testModule = {
imports = builtins.attrValues modules;
imports = [ local ] ++ builtins.attrValues modules;
};
};
in
Expand Down
2 changes: 1 addition & 1 deletion lib/pkgs-lib/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let
};

testScript = ''
machine.systemctl("is-system-running --wait")
${host.config.networking.hostName}.systemctl("is-system-running --wait")
'';
};

Expand Down

0 comments on commit 82b73cf

Please sign in to comment.