copie d'un Makefile et du template de base dans l'ISO
This commit is contained in:
3
Makefile.installation
Normal file
3
Makefile.installation
Normal file
@@ -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";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user