demo-iso: fix evaluation warning
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user