fixed syncthing paths with server check
This commit is contained in:
parent
98deb3846c
commit
a8bb053d8b
@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (config.networking) hostName;
|
inherit (config.networking) hostName;
|
||||||
in
|
in
|
||||||
@ -42,52 +42,55 @@ in
|
|||||||
galaxy.id = "UAZ5YDV-YUFBXOY-QMS6S6R-WPIIKZI-4OPPW5L-G4OVUPO-YW5KFYY-YASRAAV";
|
galaxy.id = "UAZ5YDV-YUFBXOY-QMS6S6R-WPIIKZI-4OPPW5L-G4OVUPO-YW5KFYY-YASRAAV";
|
||||||
phone.id = "OSOX2VZ-AO2SA3C-BFB6NKF-K6CR6WX-64TDBKW-RRKEKJ4-FKZE5CV-J2RGJAJ";
|
phone.id = "OSOX2VZ-AO2SA3C-BFB6NKF-K6CR6WX-64TDBKW-RRKEKJ4-FKZE5CV-J2RGJAJ";
|
||||||
};
|
};
|
||||||
folders = {
|
folders =
|
||||||
cache = {
|
let
|
||||||
path = "~/Downloads/cache/";
|
isMainHost = hostName == "workstation";
|
||||||
ignorePerms = false;
|
mkMobile =
|
||||||
devices = [
|
path:
|
||||||
"galaxy"
|
lib.mkIf isMainHost {
|
||||||
"phone"
|
inherit path;
|
||||||
];
|
ignorePerms = false;
|
||||||
|
devices = [
|
||||||
|
"galaxy"
|
||||||
|
"phone"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
cache = mkMobile "~/Downloads/cache/";
|
||||||
|
friends = mkMobile "~/Pictures/Art/Friends/";
|
||||||
|
forme = mkMobile "~/Pictures/Art/4me/";
|
||||||
|
gdl = {
|
||||||
|
path = "~/.config/jawz/";
|
||||||
|
ignorePerms = false;
|
||||||
|
devices = [
|
||||||
|
"server"
|
||||||
|
"miniserver"
|
||||||
|
"workstation"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
librewolf = {
|
||||||
|
path = "~/.librewolf/";
|
||||||
|
ignorePerms = false;
|
||||||
|
copyOwnershipFromParent = true;
|
||||||
|
type = if isMainHost then "sendonly" else "receiveonly";
|
||||||
|
devices = [
|
||||||
|
"server"
|
||||||
|
"miniserver"
|
||||||
|
"workstation"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
notes = {
|
||||||
|
path = "~/Documents/Notes";
|
||||||
|
ignorePerms = false;
|
||||||
|
devices = [
|
||||||
|
"galaxy"
|
||||||
|
"phone"
|
||||||
|
"server"
|
||||||
|
"miniserver"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
commissions = {
|
|
||||||
path = "~/Pictures/Art/4me/";
|
|
||||||
ignorePerms = false;
|
|
||||||
devices = [
|
|
||||||
"galaxy"
|
|
||||||
"phone"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
gdl = {
|
|
||||||
path = "~/.config/jawz/";
|
|
||||||
ignorePerms = false;
|
|
||||||
devices = [
|
|
||||||
"server"
|
|
||||||
"miniserver"
|
|
||||||
"workstation"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
librewolf = {
|
|
||||||
path = "~/.librewolf/";
|
|
||||||
ignorePerms = false;
|
|
||||||
copyOwnershipFromParent = true;
|
|
||||||
type = if config.networking.hostName == "workstation" then "sendonly" else "receiveonly";
|
|
||||||
devices = [
|
|
||||||
"server"
|
|
||||||
"miniserver"
|
|
||||||
"workstation"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
notes = {
|
|
||||||
path = "~/Documents/";
|
|
||||||
ignorePerms = false;
|
|
||||||
devices = [
|
|
||||||
"galaxy"
|
|
||||||
"phone"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users.users.jawz = {
|
users.users.jawz = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user