nixos/samba: Add a wants=network-online.target to the target.
The linked units are all wants=network-online.target and I suspect an issue I've had where nmbd was only announcing on a 169.x.x.x address is caused by this.
This commit is contained in:
parent
b884af7c1d
commit
50df42f0f3
@ -218,6 +218,7 @@ in
|
|||||||
targets.samba = {
|
targets.samba = {
|
||||||
description = "Samba Server";
|
description = "Samba Server";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
# Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd
|
# Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd
|
||||||
|
Loading…
Reference in New Issue
Block a user