From aaaf028baba968b199f4f29ca871907e4c7d0c97 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 26 Aug 2025 11:47:28 -0700 Subject: [PATCH] sing --- users/tao/HOME.nix | 87 +++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/users/tao/HOME.nix b/users/tao/HOME.nix index e907113..0601d46 100644 --- a/users/tao/HOME.nix +++ b/users/tao/HOME.nix @@ -214,50 +214,51 @@ in { # user = "tao"; # dataDir = "/home/tao/sync"; # configDir = "/home/tao/.config/syncthing"; - overrideDevices = true; - overrideFolders = true; # openDefaultPorts = true; - settings = { - devices = { - # we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern - # bootstrap by commenting out devices first and rebuild switch impurely - "nocomputer".id = builtins.readFile config.age.secrets.syncthing-NOcomputer.path; - "nolaptop".id = builtins.readFile config.age.secrets.syncthing-NOlaptop.path; - "uwuraid".id = builtins.readFile config.age.secrets.syncthing-uwuraid.path; - }; - folders = let - devs = [ - "nocomputer" - "nolaptop" - "uwuraid" - ]; - in { - # "documents" = { - # path = "/home/tao/documents"; - # devices = devs; - # }; - "pictures" = { - path = "/home/tao/pictures"; - devices = devs; - }; - "projects" = { - path = "/home/tao/projects"; - devices = devs; - }; - "school" = { - path = "/home/tao/school"; - devices = devs; - }; - "sync" = { - path = "/home/tao/sync"; - devices = devs; - }; - # "work" = { - # path = "/home/tao/work"; - # devices = devs; - # }; - }; - }; + + # overrideDevices = true; + # overrideFolders = true; + # settings = { + # devices = { + # # we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern + # # bootstrap by commenting out devices first and rebuild switch impurely + # "nocomputer".id = builtins.readFile config.age.secrets.syncthing-NOcomputer.path; + # "nolaptop".id = builtins.readFile config.age.secrets.syncthing-NOlaptop.path; + # "uwuraid".id = builtins.readFile config.age.secrets.syncthing-uwuraid.path; + # }; + # folders = let + # devs = [ + # "nocomputer" + # "nolaptop" + # "uwuraid" + # ]; + # in { + # # "documents" = { + # # path = "/home/tao/documents"; + # # devices = devs; + # # }; + # "pictures" = { + # path = "/home/tao/pictures"; + # devices = devs; + # }; + # "projects" = { + # path = "/home/tao/projects"; + # devices = devs; + # }; + # "school" = { + # path = "/home/tao/school"; + # devices = devs; + # }; + # "sync" = { + # path = "/home/tao/sync"; + # devices = devs; + # }; + # # "work" = { + # # path = "/home/tao/work"; + # # devices = devs; + # # }; + # }; + # }; }; xdg.userDirs = {