ctucx.git: nixfiles

ctucx' nixfiles

commit dbc544348f7c7f3049a10f4bdbf428fede23c4fd
parent 18e393673a6cb8e4c833051d1c61ebbcf3d6eefe
Author: Leah (ctucx) <git@ctu.cx>
Date: Sun, 6 Oct 2024 19:33:38 +0200

configurations/common/syncthing-config: set enabled as default
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/configurations/common/syncthing-config.nix b/configurations/common/syncthing-config.nix
@@ -50,6 +50,7 @@ in {
   folders = {
 
     "${dataDir}/Audiobooks" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-audiobooks";
       label             = "Audiobooks";
       devices           = deviceNames;

@@ -60,6 +61,7 @@ in {
     };
 
     "${dataDir}/Documents" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-documents";
       label             = "Documents";
       devices           = deviceNames;

@@ -70,6 +72,7 @@ in {
     };
 
     "${dataDir}/Music" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-music";
       label             = "Music";
       devices           = deviceNames;

@@ -80,7 +83,7 @@ in {
     };
 
     "${dataDir}/Music (Originals)" = rec {
-      enable            = isShareEnabled "${id}";
+      enable            = lib.mkDefault (isShareEnabled "${id}");
       id                = "ctucx-music-orig";
       label             = "Music (Originals)";
       devices           = filterCurrentHost (shareDeviceNames "${id}");

@@ -91,6 +94,7 @@ in {
     };
 
     "${dataDir}/Pictures" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-pictures";
       label             = "Pictures";
       devices           = deviceNames;

@@ -101,6 +105,7 @@ in {
     };
 
     "${dataDir}/Videos" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-videos";
       label             = "Videos";
       devices           = deviceNames;

@@ -111,7 +116,7 @@ in {
     };
 
     "${dataDir}/Media (legacy)" = rec {
-      enable            = isShareEnabled "${id}";
+      enable            = lib.mkDefault (isShareEnabled "${id}");
       id                = "ctucx-media";
       label             = "Media (legacy)";
       devices           = filterCurrentHost (shareDeviceNames "${id}");

@@ -125,6 +130,7 @@ in {
 
 
     "${dataDir}/Bahn-Richtlinien" = {
+      enable            = lib.mkDefault true;
       id                = "Bahn-Richtlinien";
       label             = "Bahn-Richtlinien";
       devices           = (lib.mkMerge [ deviceNames]);

@@ -135,6 +141,7 @@ in {
     };
 
     "${dataDir}/Bahn-Blechelse" = rec {
+      enable            = lib.mkDefault true;
       id                = "Blechelse";
       label             = "Bahn-Blechelse";
       devices           = (lib.mkMerge [ (filterCurrentHost (shareDeviceNames "${id}"))]);

@@ -145,6 +152,7 @@ in {
     };
 
     "${dataDir}/Wiki" = {
+      enable            = lib.mkDefault true;
       id                = "ctucx-wiki";
       label             = "Wiki";
       devices           = (lib.mkMerge [ deviceNames]);