syncthing setup

This commit is contained in:
Henri Dohmen 2025-12-30 13:54:59 +01:00
parent 24df8a251b
commit 52c074f973
Signed by: hd
GPG key ID: AB79213B044674AE
19 changed files with 244 additions and 16 deletions

View file

@ -16,11 +16,12 @@
];
imports = [
./hardware-configuration.nix
inputs.disko.nixosModules.disko
./disko.nix
inputs.nixos-hardware.nixosModules.framework-amd-ai-300-series
inputs.lanzaboote.nixosModules.lanzaboote
./disko.nix
./hardware-configuration.nix
./syncthing.nix
];
# https://github.com/NixOS/nixos-hardware/issues/1603

8
host/fw/syncthing.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
services.syncthing = {
enable = true;
user = "hd";
configDir = "/home/hd/.config/syncthing";
};
}

View file

@ -1,6 +1,19 @@
{ ... }:
let
guiAddress = "127.0.0.1:8384";
in
{
services.syncthing = {
enable = false; # TODO
enable = true;
inherit guiAddress;
};
services.nginx = {
privateVirtualHosts."syncthing.roam.lan" = {
locations."/" = {
proxyPass = "http://${guiAddress}/";
proxyWebsockets = true;
};
};
};
}