forked from NotAShelf/nyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iso-images.nix
27 lines (25 loc) · 968 Bytes
/
iso-images.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
inputs,
self,
...
}: let
installerModule = "${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64-new-kernel-no-zfs-installer.nix";
in {
# ISO images based on available hosts. We avoid basing ISO images
# on active (i.e. desktop) hosts as they likely have secrets set up.
# Images below are designed specifically to be used as live media
# and can be built with `nix build .#images.<hostname>`
# alternatively hosts can be built with `nix build .#nixosConfigurations.hostName.config.system.build.isoImage`
flake.images = let
gaea = self.nixosConfigurations."gaea";
erebus = self.nixosConfigurations."erebus";
atlas = self.nixosConfigurations."atlas".extendModules {modules = [installerModule];};
in {
# Installation iso
gaea = gaea.config.system.build.isoImage;
# air-gapped VM
erebus = erebus.config.system.build.isoImage;
# Raspberry Pi 400
atlas = atlas.config.system.build.sdImage;
};
}