Added Syncthing and SOPS
This commit is contained in:
parent
7cb428dcf1
commit
4b4d573807
1 changed files with 14 additions and 15 deletions
|
|
@ -59,42 +59,41 @@
|
||||||
keyFile = "/home/horseman/.config/sops/age/keys.txt";
|
keyFile = "/home/horseman/.config/sops/age/keys.txt";
|
||||||
generateKey = true;
|
generateKey = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
"syncthing/solis".owner = "horseman";
|
|
||||||
"syncthing/terra".owner = "horseman";
|
|
||||||
"syncthing/luna".owner = "horseman";
|
"syncthing/luna".owner = "horseman";
|
||||||
|
"syncthing/terra".owner = "horseman";
|
||||||
|
"syncthing/solis".owner = "horseman";
|
||||||
"syncthing/gui_user".owner = "horseman";
|
"syncthing/gui_user".owner = "horseman";
|
||||||
"syncthing/gui_password".owner = "horseman";
|
"syncthing/gui_password".owner = "horseman";
|
||||||
|
};
|
||||||
|
templates = {
|
||||||
|
"syncluna".content = ''${config.sops.placeholder."syncthing/luna"}'';
|
||||||
|
"syncterra".content = ''${config.sops.placeholder."syncthing/terra"}'';
|
||||||
|
"syncsolis".content = ''${config.sops.placeholder."syncthing/solis"}'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.syncthing.enable = true;
|
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "horseman";
|
user = "horseman";
|
||||||
dataDir = "/home/horseman";
|
dataDir = "/home/horseman";
|
||||||
configDir = "/home/horseman/.config/syncthing";
|
configDir = "/home/horseman/nix-config/config/syncthing";
|
||||||
overrideDevices = true;
|
overrideDevices = true;
|
||||||
overrideFolders = true;
|
overrideFolders = true;
|
||||||
settings = {
|
settings = {
|
||||||
devices = {
|
devices = {
|
||||||
"luna" = config.sops.secrets."syncthing/luna";
|
"luna" = { id = config.sops.templates."syncluna".content; };
|
||||||
"terra" = config.sops.secrets."syncthing/terra";
|
"terra" = { id = config.sops.templates."syncterra".content; };
|
||||||
# "solis" = config.sops.secrets."syncthing/solis";
|
"solis" = { id = config.sops.templates."syncsolis".content; };
|
||||||
};
|
};
|
||||||
folders = {
|
folders = {
|
||||||
"Documents" = {
|
"Documents" = {
|
||||||
path = "/home/horseman/Documents";
|
path = "/home/horseman/Documents";
|
||||||
# devices = [ "solis" "terra" "luna" ];
|
devices = [ "luna" "terra" "solis" ];
|
||||||
devices = [ "terra" "luna" ];
|
|
||||||
};
|
};
|
||||||
"Programming" = {
|
"Programming" = {
|
||||||
path = "/home/horseman/Programming";
|
path = "/home/horseman/Programming";
|
||||||
# devices = [ "solis" "terra" "luna" ];
|
devices = [ "luna" "terra" "solis" ];
|
||||||
devices = [ "terra" "luna" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gui = {
|
gui = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue