mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-24 04:40:53 +01:00
feat(fischer): init syncthing
This commit is contained in:
parent
96a9901a8e
commit
a6864f69ef
2 changed files with 40 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./home-julien.nix
|
./home-julien.nix
|
||||||
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
machine.meta = {
|
machine.meta = {
|
||||||
|
@ -86,9 +87,9 @@
|
||||||
|
|
||||||
# Use the NVidia open source kernel module (not to be confused with the
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
# independent third-party "nouveau" open source driver).
|
# independent third-party "nouveau" open source driver).
|
||||||
# Support is limited to the Turing and later architectures. Full list of
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
# supported GPUs is at:
|
# supported GPUs is at:
|
||||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
# Only available from driver 515.43.04+
|
# Only available from driver 515.43.04+
|
||||||
# Do not disable this unless your GPU is unsupported or if you have a good reason to.
|
# Do not disable this unless your GPU is unsupported or if you have a good reason to.
|
||||||
open = true;
|
open = true;
|
||||||
|
|
36
machines/fischer/syncthing.nix
Normal file
36
machines/fischer/syncthing.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "julien";
|
||||||
|
group = "users";
|
||||||
|
overrideDevices = true;
|
||||||
|
overrideFolders = true;
|
||||||
|
|
||||||
|
settings.options = {
|
||||||
|
urAccepted = -1;
|
||||||
|
listenAddresses = [ "tcp://${config.machine.meta.ips.vpn.ipv4}" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
devices = {
|
||||||
|
"gustave" = {
|
||||||
|
id = "GVKWXUD-UVEXZMZ-YCZ7S6X-R47ZWG4-AJQ2XAQ-B3HUDTK-NZTBJ2E-EFXGAQX";
|
||||||
|
addresses = [
|
||||||
|
"tcp://gustave.luj:22000"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
folders = {
|
||||||
|
"dev" = {
|
||||||
|
path = "/home/julien/dev";
|
||||||
|
devices = [
|
||||||
|
"gustave"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
|
||||||
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue