3
0
Fork 0
forked from mirrors/nixpkgs

* runInMachine: properly evaluate the machine configuration.

svn path=/nixos/trunk/; revision=25536
This commit is contained in:
Eelco Dolstra 2011-01-13 11:39:03 +00:00
parent 06a239a699
commit 2ac09578c0
2 changed files with 4 additions and 4 deletions

View file

@ -167,8 +167,8 @@ rec {
}: }:
let let
vm = buildVM { } vm = buildVM { }
[ ({ config, pkgs, ... }: { networking.hostName = "client"; }) [ machine
machine { key = "hostname"; networking.hostName = "client"; }
]; ];
buildrunner = writeText "vm-build" '' buildrunner = writeText "vm-build" ''

View file

@ -7,5 +7,5 @@ with import ../lib/testing.nix { inherit nixpkgs services system; };
runInMachine { runInMachine {
drv = (import nixpkgs { }).aterm; drv = (import nixpkgs { }).aterm;
machine = { config, pkgs, ... }: { }; machine = { config, pkgs, ... }: { services.sshd.enable = true; };
} }