diff --git a/Makefile.installation b/Makefile.installation new file mode 100644 index 0000000..533a432 --- /dev/null +++ b/Makefile.installation @@ -0,0 +1,3 @@ +all: + nixos-generate-config --root /mnt + cp -r nixos-template-base /mnt/etc/nixos/ diff --git a/README.md b/README.md index 6888cb0..0c612af 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# nixos-livecd +# Custom NixOS Live CD -Custom NixOS Live CD \ No newline at end of file +After partitioning and mounting of your partitions under `/mnt`, go to `/iso/custom` and run `make`. diff --git a/livecd-minimal.nix b/livecd-minimal.nix index a184d32..f1e0f43 100644 --- a/livecd-minimal.nix +++ b/livecd-minimal.nix @@ -9,4 +9,16 @@ isoImage.isoName = pkgs.lib.mkForce "${config.isoImage.isoBaseName}-dubronetwork-${config.system.nixosLabel}-${pkgs.stdenv.system}.iso"; # Avoid having the terminal flooded by kernel audit messages boot.kernelParams = [ "audit=0" ]; + + # Files to copy to the liveCD + isoImage.contents = [ + { + source = ./Makefile.installation; + target = "/custom/Makefile"; + } + { + source = ./nixos-template-base; + target = "/custom/nixos-template-base"; + } + ]; }