Fix microvm autostart list
This commit is contained in:
parent
921ec886f6
commit
4a64497366
|
@ -8,14 +8,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# just all the microvms from this flake
|
# just all the microvms from this flake that are supposed to run on the server
|
||||||
# that are supposed to run on the server
|
|
||||||
microvm.autostart =
|
microvm.autostart =
|
||||||
builtins.filter (name:
|
builtins.filter (name:
|
||||||
let
|
(self.nixosConfigurations.${name}.config.c3d2.deployment.server or null) == config.networking.hostName
|
||||||
inherit (self.nixosConfigurations.${name}) config;
|
|
||||||
in
|
|
||||||
(config.c3d2.deployment.server or null) == config.networking.hostName
|
|
||||||
) (builtins.attrNames self.nixosConfigurations);
|
) (builtins.attrNames self.nixosConfigurations);
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|
Loading…
Reference in New Issue