copie d'un Makefile et du template de base dans l'ISO

capgemini-cmb
Yves Dubromelle 9 years ago
parent 89b76ca559
commit 2775760aff

@ -0,0 +1,3 @@
all:
nixos-generate-config --root /mnt
cp -r nixos-template-base /mnt/etc/nixos/

@ -1,3 +1,3 @@
# nixos-livecd # Custom NixOS Live CD
Custom NixOS Live CD After partitioning and mounting of your partitions under `/mnt`, go to `/iso/custom` and run `make`.

@ -9,4 +9,16 @@
isoImage.isoName = pkgs.lib.mkForce "${config.isoImage.isoBaseName}-dubronetwork-${config.system.nixosLabel}-${pkgs.stdenv.system}.iso"; 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 # Avoid having the terminal flooded by kernel audit messages
boot.kernelParams = [ "audit=0" ]; 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";
}
];
} }

Loading…
Cancel
Save