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