about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-07-21 16:13:08 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-07-21 16:13:08 +0900
commit3dea7ca5eccd6d35ad4fe7121534b1690ef57a7e (patch)
tree6dd48dda82c340b6ccbe6a19fcc0a92024499356
parentbe878b0fa6cadf02d33e88e1ea4a5f6b44393a76 (diff)
downloadnixos-conf-3dea7ca5eccd6d35ad4fe7121534b1690ef57a7e.tar.gz
Adapt to changes
-rw-r--r--ipfs.nix4
-rw-r--r--vpsadminos.nix1
2 files changed, 2 insertions, 3 deletions
diff --git a/ipfs.nix b/ipfs.nix
index 0de1e01..9e81467 100644
--- a/ipfs.nix
+++ b/ipfs.nix
@@ -55,7 +55,7 @@ in {
       enableGC = true;
       extraConfig.GateWay = {
         NoFetch = true;
-        PublicGateways.${domain} = {
+        PublicGateways."${domain}" = {
           Paths =  [ "/ipfs" "/ipns" ];
           UseSubdomains = true;
         };
@@ -83,6 +83,4 @@ in {
       };
     };
   };
-
-  systemd.services.ipfs.serviceConfig.ReadWritePaths = lib.mkForce [ ];
 }
diff --git a/vpsadminos.nix b/vpsadminos.nix
index f03e488..109a40b 100644
--- a/vpsadminos.nix
+++ b/vpsadminos.nix
@@ -46,5 +46,6 @@ in {
       ExecStop = "${pkgs.bash}/bin/bash /ifcfg.del";
     };
     unitConfig.ConditionPathExists = "/ifcfg.add";
+    restartIfChanged = false;
   };
 }