sync
This commit is contained in:
parent
1d20b998e2
commit
5233f56434
2 changed files with 7 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
filesystems."/mnt/nas" = {
|
fileSystems."/mnt/nas" = {
|
||||||
device = "nixserver:/share";
|
device = "nixserver:/share";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [
|
options = [
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue