migrate to clan
This commit is contained in:
57
machines/genepi/syncthing.nix
Normal file
57
machines/genepi/syncthing.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
user = "rpqt";
|
||||
home = config.users.users.${user}.home;
|
||||
in
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = user;
|
||||
group = "users";
|
||||
dataDir = home;
|
||||
configDir = "${home}/.config/syncthing";
|
||||
openDefaultPorts = true;
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
settings = {
|
||||
devices = {
|
||||
"haze" = {
|
||||
id = "QUX6KGF-7KNFTGD-RAX5OWC-NFQGRNK-S2TC2DQ-DQRWDTK-KMBTQXT-EVNRDQG";
|
||||
};
|
||||
"pixel-7a" = {
|
||||
id = "IZE7B4Z-LKTJY6Q-77NN4JG-ADYRC77-TYPZTXE-Q35BWV2-AEO7Q3R-ZE63IAU";
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
"Documents" = {
|
||||
path = "${home}/Documents";
|
||||
devices = [
|
||||
"haze"
|
||||
];
|
||||
};
|
||||
"Music" = {
|
||||
path = "${home}/Media/Music";
|
||||
devices = [
|
||||
"haze"
|
||||
"pixel-7a"
|
||||
];
|
||||
};
|
||||
"Pictures" = {
|
||||
path = "${home}/Media/Pictures";
|
||||
devices = [
|
||||
"haze"
|
||||
];
|
||||
};
|
||||
"Videos" = {
|
||||
path = "${home}/Media/Videos";
|
||||
devices = [
|
||||
"haze"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user