Add live .iso build configuration

This commit is contained in:
Joshua Yuen 2025-07-27 16:28:50 -04:00
parent 313457b121
commit 9571a6cc97
Signed by: josh
GPG Key ID: 502720BC22ED411C
3 changed files with 23 additions and 0 deletions

6
build-iso.sh Executable file
View File

@ -0,0 +1,6 @@
#/usr/bin/env bash
echo "Building ISO ..."
nix build .#nixosConfigurations.live.config.system.build.isoImage
echo "Done!"

View File

@ -22,6 +22,21 @@
]; ];
}; };
live = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit host;
inherit profile;
inherit username;
inherit hashedPassword;
};
modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
./hosts/${host}
];
};
nixosvm = nixpkgs.lib.nixosSystem { nixosvm = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {

View File

@ -1,3 +1,5 @@
#/usr/bin/env bash
echo "Removing old qcow2 disk ..." echo "Removing old qcow2 disk ..."
rm -f ./nixos.qcow2 rm -f ./nixos.qcow2