more secrets

This commit is contained in:
Tao Tien 2024-04-01 17:38:14 -07:00
parent 6f9ffc5c2d
commit 019fc4a73f
4 changed files with 11 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -76,6 +76,7 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age; age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age;
age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age;
services.syncthing = { services.syncthing = {
enable = true; enable = true;
user = "tao"; user = "tao";
@ -88,19 +89,25 @@
# we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern # 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 # bootstrap by commenting out devices first and rebuild switch impurely
"nocomputer".id = builtins.readFile config.age.secrets.syncthing-NOcomputer.path; "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" = { "sync" = {
path = "/home/tao/sync"; path = "/home/tao/sync";
devices = ["nocomputer"]; devices = devs;
}; };
"school" = { "school" = {
path = "/home/tao/school"; path = "/home/tao/school";
devices = ["nocomputer"]; devices = devs;
}; };
"projects" = { "projects" = {
path = "/home/tao/projects"; path = "/home/tao/projects";
devices = ["nocomputer"]; devices = devs;
}; };
# "pictures".path = "/home/tao/pictures"; # "pictures".path = "/home/tao/pictures";
}; };