Add syncthing eirene config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
# openssl ecparam -name prime256v1 -genkey -noout -out key.pem
|
||||
# openssl genpkey -algorithm RSA -out key.pem -pkeyopt rsa_keygen_bits:3072
|
||||
"syncthing/key" = {
|
||||
owner = user.name;
|
||||
group = "users";
|
||||
};
|
||||
# openssl req -new -x509 -key key.pem -out cert.pem -days 3650
|
||||
# openssl req -new -x509 -key key.pem -out cert.pem -days 9999 -subj "/CN=syncthing"
|
||||
"syncthing/cert" = {
|
||||
owner = user.name;
|
||||
group = "users";
|
||||
@@ -30,6 +30,12 @@
|
||||
cert = config.sops.secrets."syncthing/cert".path;
|
||||
extraOptions = [ "-no-default-folder" ];
|
||||
|
||||
settings.options.urAccepted = -1;
|
||||
settings = {
|
||||
options.urAccepted = -1;
|
||||
devices = {
|
||||
amalthea.id = "2W7YT6Q-TO7CYMW-JH6QZXE-7Q6MDQQ-HPHKP4A-VI5HP7G-KLMGMST-MNRYHQG"; # Google Pixel 8 Pro
|
||||
ganymede.id = "DXJPEJA-JNGF6I4-VIZYTX7-U345C5V-HIUTSFC-D36N2EM-Y3FAKJM-PRKYQAI"; # Samsung Galaxy Tab S7+
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
user = config.users.users.nick;
|
||||
hmConfig = config.home-manager.users.${user.name};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -66,5 +67,18 @@ in
|
||||
home.homeDirectory = user.home;
|
||||
sops.defaultSopsFile = ../../users/nick/secrets/secrets.yaml;
|
||||
theme.wallpaper = ../../users/nick/secrets/wallpapers/clouds.png;
|
||||
|
||||
services.syncthing.settings.folders = {
|
||||
obsidian = {
|
||||
label = "Obsidian";
|
||||
path = "${hmConfig.xdg.userDirs.documents}/Obsidian";
|
||||
devices = [ "amalthea" "ganymede" ];
|
||||
};
|
||||
official = {
|
||||
label = "Official";
|
||||
path = "${hmConfig.xdg.userDirs.documents}/Official";
|
||||
devices = [ "amalthea" "ganymede" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user