CASCADE/custom-image.nix

24 lines
537 B
Nix
Raw Normal View History

with builtins;
2022-09-24 03:24:58 +00:00
{}:
let
myisoconfig = import ./hosts/_basic.nix;
2022-09-24 03:24:58 +00:00
copyChannel = true;
system = "x86_64-linux";
evalNixos = configuration: import <nixpkgs/nixos> {
inherit system configuration;
};
resultOfEval = (evalNixos myisoconfig);
lib = resultOfEval.pkgs.lib;
pkgs = resultOfEval.pkgs;
config = resultOfEval.config;
in
import <nixpkgs/nixos/lib/make-disk-image.nix> {
inherit lib copyChannel pkgs config;
diskSize = "20480";
format = "raw";
installBootLoader = true;
partitionTableType = "hybrid";
}