Skip to content

Commit

Permalink
Add syncthing to list of installed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwclark committed Mar 8, 2024
1 parent cd1a088 commit 7df6593
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions hosts/common/optional/syncthing.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://docs.syncthing.net/users/config.html
{
pkgs,
...
}:

{
services = {
syncthing = {
enable = true;
dataDir = "/home/administrator";
group = "syncthing";
guiAddress = "127.0.0.1:8384";
openDefaultPorts = true;
package = pkgs.syncthing;
settings = {
gui = {
theme = "black";
};
folders = {
"/home/administrator/Documents" ={
id = "documents_sync";
};
};
};
systemService = true;
user = "syncthing";
};
};
}
1 change: 1 addition & 0 deletions hosts/common/users/administrator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ in
"git"
"libvirtd"
"deluge"
"syncthing"
];

openssh.authorizedKeys.keys = [ (builtins.readFile ../../../../home/ssh.pub) ];
Expand Down

0 comments on commit 7df6593

Please sign in to comment.