Add live .iso build configuration
This commit is contained in:
parent
313457b121
commit
9571a6cc97
|
|
@ -0,0 +1,6 @@
|
||||||
|
#/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "Building ISO ..."
|
||||||
|
nix build .#nixosConfigurations.live.config.system.build.isoImage
|
||||||
|
|
||||||
|
echo "Done!"
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue