sing
This commit is contained in:
parent
67e21bc619
commit
aaaf028bab
1 changed files with 44 additions and 43 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue