diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-02-27 19:58:23 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-02-27 19:58:23 +0100 |
commit | cc2eeef4abfaf484363d43d6bcce510f0f16dc1d (patch) | |
tree | e4fe86b08f63348ce89c9ed204ab46d8e8737b8f /nixos/tests/boot.nix | |
parent | 8c6f9223d02c5123cbd364d6d56caca3c81416f0 (diff) | |
download | nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar.gz nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar.bz2 nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar.lz nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar.xz nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.tar.zst nixpkgs-cc2eeef4abfaf484363d43d6bcce510f0f16dc1d.zip |
Fix installing the Nixpkgs channel on the installation media
And test that it got installed correctly.
Diffstat (limited to 'nixos/tests/boot.nix')
-rw-r--r-- | nixos/tests/boot.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/boot.nix b/nixos/tests/boot.nix index 0ba8a2704e6..301d9d0f817 100644 --- a/nixos/tests/boot.nix +++ b/nixos/tests/boot.nix @@ -25,6 +25,11 @@ let $machine->start; $machine->waitForUnit("multi-user.target"); $machine->succeed("nix verify -r --no-trust /run/current-system"); + + # Test whether the channel got installed correctly. + $machine->succeed("nix-instantiate --dry-run '<nixpkgs>' -A hello"); + $machine->succeed("nix-env --dry-run -iA nixos.procps"); + $machine->shutdown; ''; }; |