meshnamed: fix container
All checks were successful
checks-impure / test (pull_request) Successful in 1m33s
checks / test (pull_request) Successful in 1m47s

This commit is contained in:
Jörg Thalheim 2023-11-15 11:20:56 +01:00
parent df1e166afb
commit 2bda2293cb
No known key found for this signature in database

View File

@ -65,8 +65,9 @@ in
(builtins.attrValues config.clan.networking.meshnamed.networks);
in
{
after = [ "network.target" "sys-devices-virtual-net-meshnamed.device" ];
bindsTo = [ "sys-devices-virtual-net-meshnamed.device" ];
# fix container test
after = [ "network.target" ] ++ lib.optional config.boot.isContainer "sys-devices-virtual-net-meshnamed.device";
bindsTo = lib.optional (!config.boot.isContainer) "sys-devices-virtual-net-meshnamed.device";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";