Enable syncthing
on sisko
This commit is contained in:
parent
2874437ab9
commit
a8cc32d0e0
2 changed files with 13 additions and 11 deletions
|
@ -34,6 +34,7 @@
|
||||||
"adb"
|
"adb"
|
||||||
"binfmt"
|
"binfmt"
|
||||||
"prometheus-exporters"
|
"prometheus-exporters"
|
||||||
|
"syncthing"
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
|
|
@ -4,12 +4,13 @@
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
guiAddress = "${config.networking.hostName}.fleet:8434";
|
guiAddress = "${config.networking.hostName}.fleet:8434";
|
||||||
user = config.ccr.username;
|
# TODO Use the home-manager module instead of the following conditions
|
||||||
dataDir = "/home/${config.ccr.username}";
|
user = if config.networking.hostName == "sisko" then "syncthing" else "ccr";
|
||||||
|
dataDir = if config.networking.hostName == "sisko" then "/mnt/hd/syncthing" else "/home/ccr";
|
||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
urAccepted = 1; # anonymous usage data report
|
urAccepted = 1; # anonymous usage data report
|
||||||
globalAnnounceEnabled = false; # Only sync on the VPN
|
globalAnnounceEnabled = false; # Only sync when connected to the VPN
|
||||||
};
|
};
|
||||||
devices = {
|
devices = {
|
||||||
picard = {
|
picard = {
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
sisko = {
|
sisko = {
|
||||||
id = "L5RAQXR-6U3ANNK-UJJ5AVN-37VKQRB-UK6HXSU-NN3V6HF-JNZEVA5-NI6UEAP";
|
id = "5JYQLMP-KNBMSOE-I452UDU-UTKPXJI-K27X2DI-MSCSRCG-6V54Q6U-NVGXPQA";
|
||||||
addresses = [
|
addresses = [
|
||||||
"tcp://sisko.fleet"
|
"tcp://sisko.fleet"
|
||||||
];
|
];
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
oneplus8t = {
|
oneplus8t = {
|
||||||
id = "76BJ2ZE-FPFDWUZ-3UZIENZ-TS6YBGG-EZSF6UE-GLHRBQ2-KTHTRMI-3JWNRAT";
|
id = "KMB2YRF-DGTWU24-SLITU23-5TN7BMQ-6PFAQQZ-CZ7J2QL-PIGVBTU-VRFRMQV";
|
||||||
addresses = [
|
addresses = [
|
||||||
"tcp://oneplus8t.fleet"
|
"tcp://oneplus8t.fleet"
|
||||||
];
|
];
|
||||||
|
@ -41,9 +42,9 @@
|
||||||
org = {
|
org = {
|
||||||
path =
|
path =
|
||||||
{
|
{
|
||||||
picard = "/home/${config.ccr.username}/org";
|
picard = "/home/ccr/org";
|
||||||
sisko = "/home/${config.ccr.username}/org";
|
sisko = "/mnt/hd/syncthing/org";
|
||||||
kirk = "/home/${config.ccr.username}/org";
|
kirk = "/home/ccr/org";
|
||||||
}
|
}
|
||||||
.${config.networking.hostName};
|
.${config.networking.hostName};
|
||||||
devices = [
|
devices = [
|
||||||
|
@ -56,9 +57,9 @@
|
||||||
sync = {
|
sync = {
|
||||||
path =
|
path =
|
||||||
{
|
{
|
||||||
picard = "/home/${config.ccr.username}/sync";
|
picard = "/home/ccr/sync";
|
||||||
sisko = "/home/${config.ccr.username}/sync";
|
sisko = "/mnt/hd/syncthing/sync";
|
||||||
kirk = "/home/${config.ccr.username}/sync";
|
kirk = "/home/ccr/sync";
|
||||||
}
|
}
|
||||||
.${config.networking.hostName};
|
.${config.networking.hostName};
|
||||||
devices = [
|
devices = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue