diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-27 23:21:12 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-06-27 23:21:12 +0900 |
commit | 715a1f97faeced299b7768bca7bfd041c7667d41 (patch) | |
tree | e880ec0cd471a4263b4cc5e5374437289a9da4f4 | |
parent | c6367fd2d431438c3cf9b27026b6c30fd4cf715e (diff) | |
download | nixos-conf-715a1f97faeced299b7768bca7bfd041c7667d41.tar.gz |
Mount IPFS and IPNS
-rw-r--r-- | ipfs.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. -{ 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 [ ]; } |