nixos/ipfs: always expose sockets

This commit is contained in:
Matthew Bauer
2020-06-12 17:15:34 -05:00
parent fa06d8f961
commit 982a17a48e
2 changed files with 10 additions and 2 deletions
@@ -249,12 +249,13 @@ in {
# Note the upstream service assumes default host / port
# we should override it when a custom is provided above.
systemd.sockets.ipfs-gateway = mkIf cfg.startWhenNeeded {
systemd.sockets.ipfs-gateway = {
wantedBy = [ "sockets.target" ];
};
systemd.sockets.ipfs-api = mkIf cfg.startWhenNeeded {
systemd.sockets.ipfs-api = {
wantedBy = [ "sockets.target" ];
socketConfig.ListenStream = [ "%t/ipfs.sock" ];
};
};