do not restart VMs on change
This commit is contained in:
parent
e24a44bc23
commit
05a92b0da1
1 changed files with 12 additions and 2 deletions
|
@ -61,8 +61,18 @@
|
||||||
builtins.mapAttrs
|
builtins.mapAttrs
|
||||||
(name: vm:
|
(name: vm:
|
||||||
{
|
{
|
||||||
# TODO Simplify?
|
# Do not restart virtual machines to apply configuration changes.
|
||||||
specialArgs = { inherit agenix disko pkgs lib microvm dns; machine = vm; hypervisorConfig = config; };
|
# While conceptually this seems useful, it could result in annoying situations.
|
||||||
|
# For example, changing the default VM configuration will restart ALL VMs simultaneously, causing a lot of stress on the servers.
|
||||||
|
# Downside of not restarting, is that we may need to do this manually now to apply changes.
|
||||||
|
restartIfChanged = false;
|
||||||
|
|
||||||
|
specialArgs = {
|
||||||
|
inherit agenix disko pkgs lib microvm dns;
|
||||||
|
machine = vm;
|
||||||
|
hypervisorConfig = config;
|
||||||
|
};
|
||||||
|
|
||||||
config.imports = [
|
config.imports = [
|
||||||
./.
|
./.
|
||||||
{ networking.hostName = name; }
|
{ networking.hostName = name; }
|
||||||
|
|
Loading…
Reference in a new issue