created syncthing_base.nix and added syncthing password
This commit is contained in:
parent
da0abc9cef
commit
38c2e39a4a
@ -1,5 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ../../users/richie/syncthing_base.nix ];
|
||||
|
||||
networking = {
|
||||
hostId = "1beb3027";
|
||||
@ -75,29 +76,13 @@
|
||||
|
||||
sysstat.enable = true;
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "richie";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
dataDir = "/home/richie/Syncthing";
|
||||
configDir = "/home/richie/.config/syncthing";
|
||||
guiAddress = "192.168.90.40:8384";
|
||||
settings = {
|
||||
devices = {
|
||||
"Phone" = {
|
||||
id = "LTGPLAE-M4ZDJTM-TZ3DJGY-SLLAVWF-CQDVEVS-RGCS75T-GAPZYK3-KUM6LA5";
|
||||
};
|
||||
"rhapsody-in-green" = {
|
||||
id = "INKUNKN-KILXGL5-2TQ5JTH-ORJOLOM-WYD2PYO-YRDLQIX-3AKZFWT-ZN7OJAE";
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
syncthing.guiAddress = "192.168.90.40:8384";
|
||||
syncthing.folders = {
|
||||
"notes" = {
|
||||
id = "l62ul-lpweo";
|
||||
path = "/ZFS/Media/Notes";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"rhapsody-in-green"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -106,7 +91,7 @@
|
||||
id = "6uppx-vadmy";
|
||||
path = "/ZFS/Storage/Syncthing/books";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"rhapsody-in-green"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -115,7 +100,7 @@
|
||||
id = "4ckma-gtshs";
|
||||
path = "/ZFS/Storage/Syncthing/important";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"rhapsody-in-green"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -124,7 +109,7 @@
|
||||
id = "vprc5-3azqc";
|
||||
path = "/ZFS/Storage/Syncthing/music";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"rhapsody-in-green"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -136,8 +121,6 @@
|
||||
fsWatcherEnabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
usbguard = {
|
||||
enable = false;
|
||||
|
@ -26,5 +26,6 @@
|
||||
"update.mode": "none",
|
||||
"redhat.telemetry.enabled": true,
|
||||
// force the use of rust-analyzer from dev shell
|
||||
"rust-analyzer.server.path": "rust-analyzer"
|
||||
"rust-analyzer.server.path": "rust-analyzer",
|
||||
"cSpell.userWords": ["syncthing"]
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
richie:
|
||||
user-password: ENC[AES256_GCM,data:l1WF7bwzEDKoDh3lv60H2A35ndPmTSsBQeso8YksZO4UstOjtSKFF5IZJYlE6Amonl9ZFUsQFtgVN+Rg2Yh/rmlI1TBL7CZDadlYIueQh8Si1Xr6qJJMBxqT/dV7G9tH24auUVdWc7tfoEYh6qZ+n9JR47H73A==,iv:d/Xe6qxaNSWo//gPES4h1XqWPGjALQ2316LPPZZyM68=,tag:2lJEc7UrpdmeAVfNXxy7Kw==,type:str]
|
||||
syncthing:
|
||||
password: ENC[AES256_GCM,data:iITyXH47YLdbD4t7k27SFpfN,iv:jzBh69brKJSxLNCd/ntY7O/GcpjmGc1Gli7yuxwwe2E=,tag:6fglnQjYXCnilgy8p+KWuw==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
@ -42,8 +44,8 @@ sops:
|
||||
ZjFHcmtnd3lPbVdjSDVBenlBR0FOV28KwcBVT9q/OKnMvAkrWe9/+HB2qknSOurA
|
||||
nKDYMNExyE6K/uOKKbkH0ucaYBN+7+/b50nfUl5i/tfJvIUaWkwQUg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-02-03T22:08:10Z"
|
||||
mac: ENC[AES256_GCM,data:KUhn+0srLHqmHVPYuJV8L5CClgSABxvknaZ7DZQU8goQ9CpM6LIdys+VdsbOYPAcO/lVSzgtjX3/umuDDsJbAEwTXoJZWITCVNYXJDNvYSDke5ZSrl/xq9UugJHyvzX9HOnKXkLsxNU+VrA9EBUfrTWoYnaz+NPes9com1efvqY=,iv:GV5eIFNJuQPJliSOOb2ebkjX99WHbOtSjl1kHrAnTyc=,tag:iuFqrBbQk4ruk733pxDgoA==,type:str]
|
||||
lastmodified: "2024-04-13T12:49:06Z"
|
||||
mac: ENC[AES256_GCM,data:vvdCKlN4vbyKG3IY4q+n9t6aPzgA0ypBIhkmvZkuturKXtgD3AlRXpr1tfWACMCby16/sAOpC7z/KSV+bIW7ALxRhO/e8RZzqjxuUWn9l1V84t2Ydz3yeDH37aU/4w6ACdjQZLJAA/Z7a8FiFl1AcFK5VQrgFx1OFPstMdht8Ek=,iv:p35BFUoKJRtNKkSlUzy1aSYiy+NzxSIAFZ2eFt5sRiI=,tag:dPPEWLeJzpB5Eoi+pX0zIA==,type:str]
|
||||
pgp:
|
||||
- created_at: "2024-04-03T21:19:44Z"
|
||||
enc: |-
|
||||
|
33
users/richie/syncthing_base.nix
Normal file
33
users/richie/syncthing_base.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "richie";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
dataDir = "/home/richie/Syncthing";
|
||||
configDir = "/home/richie/.config/syncthing";
|
||||
settings = {
|
||||
gui = {
|
||||
user = "richie";
|
||||
password.from_command = [
|
||||
"/usr/bin/env"
|
||||
"cat"
|
||||
"${config.sops.secrets."syncthing/password".path}"
|
||||
];
|
||||
};
|
||||
devices = {
|
||||
phone.id = "LTGPLAE-M4ZDJTM-TZ3DJGY-SLLAVWF-CQDVEVS-RGCS75T-GAPZYK3-KUM6LA5";
|
||||
jeeves.id = "7YQ4UEW-OPQEBH4-6YKJH4B-ZCE3SAX-5EIK5JL-WJDIWUA-WA2N3D5-MNK6GAV";
|
||||
rhapsody-in-green.id = "INKUNKN-KILXGL5-2TQ5JTH-ORJOLOM-WYD2PYO-YRDLQIX-3AKZFWT-ZN7OJAE";
|
||||
};
|
||||
};
|
||||
};
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets = {
|
||||
"syncthing/password".owner = "richie";
|
||||
};
|
||||
};
|
||||
}
|
@ -1,9 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../programs.nix
|
||||
./hardware.nix
|
||||
../../syncthing_base.nix
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@ -45,28 +44,12 @@
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
user = "richie";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
dataDir = "/home/richie/Syncthing";
|
||||
configDir = "/home/richie/.config/syncthing";
|
||||
settings = {
|
||||
devices = {
|
||||
"Phone" = {
|
||||
id = "LTGPLAE-M4ZDJTM-TZ3DJGY-SLLAVWF-CQDVEVS-RGCS75T-GAPZYK3-KUM6LA5";
|
||||
};
|
||||
"jeeves" = {
|
||||
id = "7YQ4UEW-OPQEBH4-6YKJH4B-ZCE3SAX-5EIK5JL-WJDIWUA-WA2N3D5-MNK6GAV";
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
syncthing.settings.folders = {
|
||||
"notes" = {
|
||||
id = "l62ul-lpweo";
|
||||
path = "/home/richie/notes";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"jeeves"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -75,7 +58,7 @@
|
||||
id = "6uppx-vadmy";
|
||||
path = "/home/richie/books";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"jeeves"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -84,7 +67,7 @@
|
||||
id = "4ckma-gtshs";
|
||||
path = "/home/richie/important";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"jeeves"
|
||||
];
|
||||
fsWatcherEnabled = true;
|
||||
@ -93,7 +76,7 @@
|
||||
id = "vprc5-3azqc";
|
||||
path = "/home/richie/music";
|
||||
devices = [
|
||||
"Phone"
|
||||
"phone"
|
||||
"jeeves"
|
||||
];
|
||||
"projects" = {
|
||||
@ -105,8 +88,6 @@
|
||||
fsWatcherEnabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
zerotierone = {
|
||||
enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user