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