85 lines
2.3 KiB
Nix
85 lines
2.3 KiB
Nix
{ lib, pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
obsidian
|
|
];
|
|
|
|
home.shellAliases = {
|
|
"notes" = "(cd ~/Documents/Notes && nvim)";
|
|
};
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
tray = {
|
|
enable = lib.mkDefault true;
|
|
};
|
|
# This will override any locally configured devices and folders
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings = {
|
|
folders = {
|
|
Notes = {
|
|
label = "Notes";
|
|
path = "~/Documents/Notes";
|
|
devices = [
|
|
"altair"
|
|
"mcp"
|
|
"vega"
|
|
"proxima"
|
|
];
|
|
};
|
|
};
|
|
devices = {
|
|
mcp = {
|
|
id = "6O3U5QK-PR4RAAB-L32TR6K-USM7PER-VJBIKCI-FOWNA2G-7CQU5HF-R2OXNQ2";
|
|
name = "mcp";
|
|
addresses = [
|
|
# "tcp://mcp.blazestar.net"
|
|
"relay://syncthing.blazestar.net:22067"
|
|
];
|
|
compression = "always";
|
|
};
|
|
vega = {
|
|
id = "U55HQDN-YTUQAGA-G4O4LMZ-OAVAUVZ-RBDD2S6-JAWAUF2-Z4VZ7BM-TIIVUA4";
|
|
name = "vega";
|
|
addresses = [
|
|
# "tcp://vega.blazestar.net"
|
|
"relay://syncthing.blazestar.net:22067"
|
|
];
|
|
compression = "always";
|
|
};
|
|
altair = {
|
|
id = "W5QZDM6-CUVQJIG-DR4BJCU-IQ7UGTJ-NQUSW73-E3GWSLU-A2QEMKR-BRDH3Q3";
|
|
name = "altair";
|
|
addresses = [
|
|
# "tcp://altair.blazestar.net"
|
|
"relay://syncthing.blazestar.net:22067"
|
|
];
|
|
compression = "always";
|
|
};
|
|
proxima = {
|
|
id = "7FE67SC-2KQQWQD-OY5Q44O-WPIVQYG-WMWDBEH-SRABY4C-WD3L4AO-GDAYVAX";
|
|
name = "Pixel 6a";
|
|
addresses = [
|
|
"relay://syncthing.blazestar.net:22067"
|
|
];
|
|
compression = "always";
|
|
};
|
|
};
|
|
options = {
|
|
localAnnounceEnabled = false;
|
|
globalAnnounceEnabled = false;
|
|
relaysEnabled = true;
|
|
listenAddresses = [
|
|
"relay://syncthing.blazestar.net:22067/?id=TITGK5I-55GDSAF-HHPCSMZ-AHD2YKT-LZSKYRQ-5B6MGE4-LMLNEP6-KQ4UJQF&networkTimeout=2m0s&pingInterval=1m0s&statusAddr=%3A22070"
|
|
];
|
|
# Whether the user has accepted submitting usage data. 0 is no-choice.
|
|
# -1 means no. A positive integer means yes.
|
|
urAccepted = -1;
|
|
# Disable NAT port-mapping
|
|
natEnabled = false;
|
|
};
|
|
};
|
|
};
|
|
}
|