added syncthing password

This commit is contained in:
willifan 2024-12-23 00:13:41 +01:00
parent a94fee1cd2
commit 985b5344f6
5 changed files with 20 additions and 18 deletions

View file

@ -1,4 +1,4 @@
{ lib, types, config, ... }:
{ lib, config, ... }:
let
deviceList = builtins.attrNames config.common.syncthing.devices;
in
@ -20,18 +20,13 @@ in
};
};
config.services.syncthing = lib.mkIf config.common.syncthing.enable {
config.home-manager.users.willifan.services.syncthing = lib.mkIf config.common.syncthing.enable {
enable = lib.mkDefault true;
user = lib.mkDefault "willifan";
dataDir = lib.mkDefault "/mnt/data";
configDir = lib.mkDefault "/mnt/data/.config/syncthing";
overrideDevices = lib.mkDefault true;
overrideFolders = lib.mkDefault true;
passwordFile = config.sops.secrets."syncthing/password".path;
settings = {
gui = {
user = lib.mkDefault "willifan";
password = lib.mkDefault "temppassword";
};
gui.user = "willifan";
devices = config.common.syncthing.devices;
folders = lib.mkDefault {
"Documents" = {