Merge pull request 'move clanName into nixos machine configuration' (#630) from Mic92-main into main
This commit is contained in:
@@ -11,6 +11,7 @@ let
|
|||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
options = [ "trans=virtio" "version=9p2000.L" "cache=loose" ];
|
options = [ "trans=virtio" "version=9p2000.L" "cache=loose" ];
|
||||||
};
|
};
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -59,14 +59,16 @@ def qemu_command(
|
|||||||
xchg_dir: Path,
|
xchg_dir: Path,
|
||||||
secrets_dir: Path,
|
secrets_dir: Path,
|
||||||
disk_img: Path,
|
disk_img: Path,
|
||||||
|
wayland: bool,
|
||||||
) -> list[str]:
|
) -> list[str]:
|
||||||
kernel_cmdline = [
|
kernel_cmdline = [
|
||||||
(Path(nixos_config["toplevel"]) / "kernel-params").read_text(),
|
(Path(nixos_config["toplevel"]) / "kernel-params").read_text(),
|
||||||
f'init={nixos_config["toplevel"]}/init',
|
f'init={nixos_config["toplevel"]}/init',
|
||||||
f'regInfo={nixos_config["regInfo"]}/registration',
|
f'regInfo={nixos_config["regInfo"]}/registration',
|
||||||
"console=ttyS0,115200n8",
|
"console=ttyS0,115200n8",
|
||||||
"console=tty0",
|
|
||||||
]
|
]
|
||||||
|
if not wayland:
|
||||||
|
kernel_cmdline.append("console=tty0")
|
||||||
# fmt: off
|
# fmt: off
|
||||||
command = [
|
command = [
|
||||||
"qemu-kvm",
|
"qemu-kvm",
|
||||||
@@ -244,6 +246,7 @@ def run_vm(
|
|||||||
xchg_dir=xchg_dir,
|
xchg_dir=xchg_dir,
|
||||||
secrets_dir=secrets_dir,
|
secrets_dir=secrets_dir,
|
||||||
disk_img=disk_img,
|
disk_img=disk_img,
|
||||||
|
wayland=vm.wayland,
|
||||||
)
|
)
|
||||||
|
|
||||||
if vm.wayland:
|
if vm.wayland:
|
||||||
|
|||||||
Reference in New Issue
Block a user