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:
parent
d6e025edd1
commit
ad34c7697a
|
@ -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…
Reference in a new issue