3
0
Fork 0
forked from mirrors/nixpkgs

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; {