This commit is contained in:
Lilith 2024-06-08 22:09:38 +02:00
parent 1d20b998e2
commit 5233f56434
Signed by: lilith
GPG key ID: 8712A0F317C37175
2 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ ... }: { { ... }: {
filesystems."/mnt/nas" = { fileSystems."/mnt/nas" = {
device = "nixserver:/share"; device = "nixserver:/share";
fsType = "nfs"; fsType = "nfs";
options = [ options = [

View file

@ -1,16 +1,18 @@
{ conf, config, ...}: { { conf, config, ...}: {
sops.secrets."syncthing/key.pem" = { sops.secrets."syncthing/key.pem" = {
sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml;
}; };
sops.secrets."syncthing/cert.pem" = { sops.secrets."syncthing/cert.pem" = {
sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml;
}; };
services.syncthing = { services.syncthing = {
enable = true;
user = conf.user; user = conf.user;
dataDir = "$(conf.home)/sync"; dataDir = /home/lilith/sync;
configDir = "$(conf.home)/.config/syncthing"; configDir = /home/lilith/.config/syncthing;
overrideDevices = true; overrideDevices = true;
overrideFolders = true; overrideFolders = true;