moved syncthing_base.nix

This commit is contained in:
Richie Cahill 2024-04-19 19:46:29 -04:00 committed by Alice Huston
parent 0a88a21372
commit 75a57fb331
3 changed files with 2 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ../../users/richie/syncthing_base.nix ]; imports = [ ../rhapsody-in-green/syncthing_base.nix ];
networking = { networking = {
hostId = "1beb3027"; hostId = "1beb3027";

View File

@ -1,7 +1,7 @@
{ {
imports = [ imports = [
./hardware.nix ./hardware.nix
../../users/richie/syncthing_base.nix ./syncthing_base.nix
]; ];
boot = { boot = {

View File

@ -1,5 +1,3 @@
{ config, ... }:
{ {
services.syncthing = { services.syncthing = {
enable = true; enable = true;
@ -9,14 +7,6 @@
dataDir = "/home/richie/Syncthing"; dataDir = "/home/richie/Syncthing";
configDir = "/home/richie/.config/syncthing"; configDir = "/home/richie/.config/syncthing";
settings = { settings = {
gui = {
user = "richie";
password.from_command = [
"/usr/bin/env"
"cat"
"${config.sops.secrets."syncthing/password".path}"
];
};
devices = { devices = {
phone.id = "LTGPLAE-M4ZDJTM-TZ3DJGY-SLLAVWF-CQDVEVS-RGCS75T-GAPZYK3-KUM6LA5"; phone.id = "LTGPLAE-M4ZDJTM-TZ3DJGY-SLLAVWF-CQDVEVS-RGCS75T-GAPZYK3-KUM6LA5";
jeeves.id = "7YQ4UEW-OPQEBH4-6YKJH4B-ZCE3SAX-5EIK5JL-WJDIWUA-WA2N3D5-MNK6GAV"; jeeves.id = "7YQ4UEW-OPQEBH4-6YKJH4B-ZCE3SAX-5EIK5JL-WJDIWUA-WA2N3D5-MNK6GAV";
@ -24,10 +14,4 @@
}; };
}; };
}; };
sops = {
defaultSopsFile = ./secrets.yaml;
secrets = {
"syncthing/password".owner = "richie";
};
};
} }