2022-05-30 12:57:05 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
|
|
|
./machine-config.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
system.build.qcow2 = import <nixpkgs/nixos/lib/make-disk-image.nix> {
|
|
|
|
inherit lib config;
|
|
|
|
pkgs = import <nixpkgs> { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
|
2022-05-30 14:36:17 +00:00
|
|
|
diskSize = 32768;
|
2022-05-30 12:57:05 +00:00
|
|
|
format = "qcow2";
|
|
|
|
configFile = pkgs.writeText "configuration.nix"
|
|
|
|
''
|
|
|
|
{
|
|
|
|
imports = [ <./machine-config.nix> ];
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|