diff --git a/secrets/syncthing-NOcomputer.age b/secrets/syncthing-NOcomputer.age index dbc9a29..90a4fd4 100644 Binary files a/secrets/syncthing-NOcomputer.age and b/secrets/syncthing-NOcomputer.age differ diff --git a/secrets/syncthing-NOlaptop.age b/secrets/syncthing-NOlaptop.age new file mode 100644 index 0000000..c85524e Binary files /dev/null and b/secrets/syncthing-NOlaptop.age differ diff --git a/secrets/uwuraid.age b/secrets/uwuraid.age index 25778c5..ae1da3c 100644 Binary files a/secrets/uwuraid.age and b/secrets/uwuraid.age differ diff --git a/users/tao.nix b/users/tao.nix index 1529558..35308de 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -76,6 +76,7 @@ virtualisation.libvirtd.enable = true; age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age; + age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age; services.syncthing = { enable = true; user = "tao"; @@ -88,19 +89,25 @@ # 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; }; - folders = { + folders = let + devs = [ + "nocomputer" + "nolaptop" + ]; + in { "sync" = { path = "/home/tao/sync"; - devices = ["nocomputer"]; + devices = devs; }; "school" = { path = "/home/tao/school"; - devices = ["nocomputer"]; + devices = devs; }; "projects" = { path = "/home/tao/projects"; - devices = ["nocomputer"]; + devices = devs; }; # "pictures".path = "/home/tao/pictures"; };