demo-iso: fix evaluation warning

This commit is contained in:
Michael Hoang
2025-09-19 11:34:09 +02:00
parent 91985504d0
commit 9f1d8d22e8

View File

@@ -45,29 +45,33 @@ let
'';
};
morphModule = {
imports = [
(
{ modulesPath, ... }:
{
imports = [ "${modulesPath}/image/images.nix" ];
}
)
];
image.modules.iso.isoImage.squashfsCompression = "zstd -Xcompression-level 1";
networking.networkmanager.enable = true;
services.getty.autologinUser = "root";
programs.bash.interactiveShellInit = ''
if [[ "$(tty)" =~ /dev/(tty1|hvc0|ttyS0)$ ]]; then
# workaround for https://github.com/NixOS/nixpkgs/issues/219239
systemctl restart systemd-vconsole-setup.service
morphModule =
{ config, ... }:
{
imports = [
(
{ modulesPath, ... }:
{
imports = [ "${modulesPath}/image/images.nix" ];
}
)
];
image.modules.iso.isoImage.squashfsCompression = "zstd -Xcompression-level 1";
networking.networkmanager.enable = true;
services.getty.autologinUser = "root";
programs.bash.interactiveShellInit = ''
if [[ "$(tty)" =~ /dev/(tty1|hvc0|ttyS0)$ ]]; then
# workaround for https://github.com/NixOS/nixpkgs/issues/219239
systemctl restart systemd-vconsole-setup.service
reset
reset
${clan_welcome}/bin/clan_welcome
fi
'';
};
${clan_welcome}/bin/clan_welcome
fi
'';
system.stateVersion = config.system.nixos.release;
};
in
{
clan.templates.machine.demo-template = {