feat: Enhance NixOS workshop environment with conditional ISO settings and improved local development commands

This commit is contained in:
2025-08-16 14:42:52 +02:00
parent 66c986c8f1
commit 6c32b42f48
3 changed files with 155 additions and 125 deletions

View File

@@ -49,9 +49,9 @@
numParticipants;
# Common configuration for both live-iso and local-vm
commonConfig = import ./common.nix {
inherit pkgs allParticipantNames participantNames;
};
commonConfig =
{ isLiveIso ? false, ... } @ args:
import ./common.nix (args // { inherit pkgs allParticipantNames participantNames; });
in
{
packages.${system} = {
@@ -63,6 +63,7 @@
modules = [
commonConfig
{ isLiveIso = true; }
];
};
};
@@ -79,6 +80,7 @@
inherit system;
modules = [
commonConfig
{ isLiveIso = false; }
({ config, pkgs, ... }: {
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
@@ -108,3 +110,4 @@
};
};
}