1 { nixos ? <nixpkgs/nixos>
2 , system ? builtins.currentSystem
7 host-configuration = import ./host-configuration-nixops.nix;
11 configuration = host-configuration;
14 # TODO: Not yet sure if using the local packages is the best approach
15 pkgs = import <nixpkgs> { };
19 ova = host.config.system.build.virtualBoxOVA;
21 nixos-disk = pkgs.stdenv.mkDerivation rec {
22 name = "nixops-${version}.vmdk";
23 version = host.config.system.nixos.release;
24 phases = [ "installPhase" ];
25 nativeBuildInputs = [ ova ];
28 tar -xf ${ova}/*.ova -C ova
30 mv ova/nixos*.vmdk $out/nixops-${version}.vmdk
31 ln -s nixops-${version}.vmdk $out/nixops.vmdk