Skip to content

Commit

Permalink
nix/module.nix: Start comin after the network comes up.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpds committed May 7, 2024
1 parent 425c747 commit 8c9952a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ in {
environment.systemPackages = [ pkgs.comin ];
networking.firewall.allowedTCPPorts = lib.optional cfg.services.comin.exporter.openFirewall cfg.services.comin.exporter.port;
systemd.services.comin = {
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
path = [ config.nix.package ];
# The comin service is restarted by comin itself when it
Expand Down

0 comments on commit 8c9952a

Please sign in to comment.