about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 [ ];
 }