Open
Description
I've introduced new libvirt settings cmdline/kernel
recently and I am not sure to understand how nixops deploy -d
should work. I would like to dynamically adjust the boot settings in my deployment.nix (adding cmdline
to the libvirt domain), rerun deploy
afterwards and see the domain updated accordingly. Right now this seems completely ignored.
let
libvirtd-base = {
headless = true;
extraDevicesXML = ''
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
'';
# potentially might set networks to 0
extraDomainXML = ''
<on_crash>preserve</on_crash>
'';
};
in
libvirtd-local = { config, pkgs, ... }: {
deployment.targetEnv = "libvirtd";
# If i concatenate/deconcatenate the set to libvirtd-base should the domain be updated ?
deployment.libvirtd = libvirtd-base // {
cmdline="root=/dev/sda1 earlycon=ttyS0 console=ttyS0 init=/nix/var/nix/profiles/system/init boot.debug=1 boot.consoleLogLevel=1 ";
kernel="/home/teto/my_kernel/build/arch/x86_64/boot/bzImage";
};
};