Add live .iso build configuration
This commit is contained in:
parent
de9bb4bac6
commit
a7ffca0bfe
|
|
@ -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 {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
echo "Removing old qcow2 disk ..."
|
||||
rm -f ./nixos.qcow2
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue