about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-27 23:21:12 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-27 23:21:12 +0900
commit715a1f97faeced299b7768bca7bfd041c7667d41 (patch)
treee880ec0cd471a4263b4cc5e5374437289a9da4f4
parentc6367fd2d431438c3cf9b27026b6c30fd4cf715e (diff)
downloadnixos-conf-715a1f97faeced299b7768bca7bfd041c7667d41.tar.gz
Mount IPFS and IPNS
-rw-r--r--ipfs.nix5
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 [ ];
 }