21 lines
486 B
Nix
21 lines
486 B
Nix
{ config, lib, modulesPath, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./nixos-config
|
|
];
|
|
|
|
system.build.raw = import "${modulesPath}/../lib/make-disk-image.nix" {
|
|
inherit config lib pkgs;
|
|
name = "linode-image";
|
|
format = "raw";
|
|
partitionTableType = "none";
|
|
postVM =
|
|
''
|
|
${pkgs.gzip}/bin/gzip -6 -c -- $diskImage > \
|
|
$out/linode-image.img.gz
|
|
rm $diskImage
|
|
'';
|
|
};
|
|
}
|