From 5233f56434c999d0d9f9b27a80d6bec486a0cb59 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sat, 8 Jun 2024 22:09:38 +0200 Subject: [PATCH] sync --- system/nfs.nix | 2 +- system/syncthing.nix | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/system/nfs.nix b/system/nfs.nix index d2028318..6fb1057b 100644 --- a/system/nfs.nix +++ b/system/nfs.nix @@ -1,5 +1,5 @@ { ... }: { - filesystems."/mnt/nas" = { + fileSystems."/mnt/nas" = { device = "nixserver:/share"; fsType = "nfs"; options = [ diff --git a/system/syncthing.nix b/system/syncthing.nix index 1155b8e9..1cce7a88 100644 --- a/system/syncthing.nix +++ b/system/syncthing.nix @@ -1,16 +1,18 @@ { conf, config, ...}: { sops.secrets."syncthing/key.pem" = { - sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml + sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml; }; sops.secrets."syncthing/cert.pem" = { - sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml + sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml; }; services.syncthing = { + enable = true; + user = conf.user; - dataDir = "$(conf.home)/sync"; - configDir = "$(conf.home)/.config/syncthing"; + dataDir = /home/lilith/sync; + configDir = /home/lilith/.config/syncthing; overrideDevices = true; overrideFolders = true;