2023-08-02 09:08:00 +00:00
|
|
|
{ self, lib, ... }:
|
|
|
|
let
|
|
|
|
installer = lib.nixosSystem {
|
2023-08-02 09:50:43 +00:00
|
|
|
pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
|
2023-08-02 09:08:00 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
self.nixosModules.installer
|
|
|
|
self.nixosModules.hidden-ssh-announce
|
|
|
|
self.inputs.nixos-generators.nixosModules.all-formats
|
|
|
|
self.inputs.disko.nixosModules.disko
|
2023-08-02 09:22:33 +00:00
|
|
|
({ config, ... }: { system.stateVersion = config.system.nixos.version; })
|
2023-08-02 09:08:00 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2023-09-22 10:59:37 +00:00
|
|
|
flake.packages.x86_64-linux.install-iso = self.inputs.disko.lib.makeDiskImages { nixosConfig = installer; };
|
2023-08-02 09:08:00 +00:00
|
|
|
flake.apps.x86_64-linux.install-vm.program = installer.config.formats.vm.outPath;
|
|
|
|
flake.apps.x86_64-linux.install-vm-nogui.program = installer.config.formats.vm-nogui.outPath;
|
2023-07-12 16:25:25 +00:00
|
|
|
}
|