ctucx.git: nixfiles

ctucx' nixfiles

commit 4c2e951f0879b97d333130e575a374030e8d7c52
parent a299ccc9e51b2ecd560c7c3bcdca2332f39ba97e
Author: Leah (ctucx) <git@ctu.cx>
Date: Sat, 15 Jun 2024 20:52:57 +0200

configurations/common/syncthing-config: remove isa devices and shares
1 file changed, 4 insertions(+), 31 deletions(-)
M
configurations/common/syncthing-config.nix
|
35
++++-------------------------------
diff --git a/configurations/common/syncthing-config.nix b/configurations/common/syncthing-config.nix
@@ -15,10 +15,6 @@ let
     };
   };
 
-  isaDevices = {
-    isa-mba13.id = "U5KFHD3-GEX3QQK-7UOC7PY-IAJWZSU-MYO6KWL-GWZ3NHF-CBLJRSE-OTIUAAS";
-  };
-
   enabledShares = {
     blechkasten = [
       "Blechelse"

@@ -33,7 +29,6 @@ let
   };
 
   deviceNames       = builtins.attrNames (lib.filterAttrs isCurrentHost devices);
-  isaDeviceNames    = builtins.attrNames isaDevices;
   shareDeviceNames  = share: builtins.attrNames (lib.filterAttrs (n: v: builtins.elem share v) enabledShares);
 
   filterCurrentHost = devices: lib.remove config.networking.hostName devices;

@@ -51,7 +46,7 @@ in {
 
   dataDir = dataDir;
 
-  devices = (lib.mkMerge [ (lib.filterAttrs isCurrentHost devices) isaDevices]);
+  devices = (lib.mkMerge [ (lib.filterAttrs isCurrentHost devices)]);
 
   folders = {
 

@@ -133,7 +128,7 @@ in {
     "${dataDir}/Bahn-Richtlinien" = {
       id                = "Bahn-Richtlinien";
       label             = "Bahn-Richtlinien";
-      devices           = (lib.mkMerge [ deviceNames isaDeviceNames]);
+      devices           = (lib.mkMerge [ deviceNames]);
       versioning.type   = "trashcan";
       versioning.params = {
         cleanoutDays = "3";

@@ -143,17 +138,7 @@ in {
     "${dataDir}/Bahn-Blechelse" = rec {
       id                = "Blechelse";
       label             = "Bahn-Blechelse";
-      devices           = (lib.mkMerge [ (filterCurrentHost (shareDeviceNames "${id}")) isaDeviceNames]);
-      versioning.type   = "trashcan";
-      versioning.params = {
-        cleanoutDays = "3";
-      };
-    };
-
-    "${dataDir}/Isashare" = {
-      id                = "cutieshare";
-      label             = "Isashare";
-      devices           = (lib.mkMerge [ deviceNames isaDeviceNames]);
+      devices           = (lib.mkMerge [ (filterCurrentHost (shareDeviceNames "${id}"))]);
       versioning.type   = "trashcan";
       versioning.params = {
         cleanoutDays = "3";

@@ -163,24 +148,12 @@ in {
     "${dataDir}/Wiki" = {
       id                = "ctucx-wiki";
       label             = "Wiki";
-      devices           = (lib.mkMerge [ deviceNames isaDeviceNames]);
+      devices           = (lib.mkMerge [ deviceNames]);
       versioning.type   = "staggered";
       versioning.params = {
         maxAge = "2592000";
       };
     };
 
-    "${dataDir}/YouTube" = rec {
-      enable            = isShareEnabled "${id}";
-      id                = "YouTube";
-      label             = "YouTube";
-      devices           = (lib.mkMerge [ (filterCurrentHost (shareDeviceNames "${id}")) isaDeviceNames]);
-      versioning.type   = "trashcan";
-      versioning.params = {
-        cleanoutDays = "3";
-      };
-    };
-
-
   };
 }