From 715a1f97faeced299b7768bca7bfd041c7667d41 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 27 Jun 2022 23:21:12 +0900 Subject: Mount IPFS and IPNS --- ipfs.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipfs.nix b/ipfs.nix index 58ea7c2..a90c86f 100644 --- a/ipfs.nix +++ b/ipfs.nix @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Affero General Public License # along with loang configuration. If not, see . -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: let domain = config.networking.domain; in { networking.firewall = { @@ -49,6 +49,7 @@ in { services = { ipfs = { + autoMount = true; enable = true; enableGC = true; extraConfig.GateWay = { @@ -81,4 +82,6 @@ in { }; }; }; + + systemd.services.ipfs.serviceConfig.ReadWritePaths = lib.mkForce [ ]; } -- cgit 1.4.1