syncthing setup
This commit is contained in:
parent
24df8a251b
commit
52c074f973
19 changed files with 244 additions and 16 deletions
|
|
@ -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
8
host/fw/syncthing.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "hd";
|
||||
configDir = "/home/hd/.config/syncthing";
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue