ipfs: install ipfs-hardened.service as well
This will be useful for hardening the IPFS NixOS module in the future. (cherry picked from commit ad34c7697a2e696d31222b4ae7810700175933f0)
This commit is contained in:
parent
fa6a56bf12
commit
576fd29e84
@ -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; {
|
||||
|
Loading…
x
Reference in New Issue
Block a user