ipfs: install ipfs-hardened.service as well

This will be useful for hardening the IPFS NixOS module in the future.
This commit is contained in:
Luflosi 2021-07-22 12:54:18 +02:00
parent d6e025edd1
commit ad34c7697a
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -29,10 +29,13 @@ buildGoModule rec {
postInstall = ''
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
install --mode=444 -D misc/systemd/ipfs-hardened.service $out/etc/systemd/system/ipfs-hardened.service
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
substituteInPlace $out/etc/systemd/system/ipfs.service \
--replace /usr/bin/ipfs $out/bin/ipfs
substituteInPlace $out/etc/systemd/system/ipfs-hardened.service \
--replace /usr/bin/ipfs $out/bin/ipfs
'';
meta = with lib; {