all repos — nixfiles @ e506a5256e32ff525514c5010eb524e9b91550df

System and user configuration, managed by nix and home-manager

centralise syncthing config, split by system role

Alin
commit

e506a5256e32ff525514c5010eb524e9b91550df

parent

a82657c73ef6622ed997baed5e3e1c35113fcc2a

1 file changed, 10 insertions(+), 0 deletions(-)

changed files
M system/roles/desktop.nix → system/roles/desktop.nix
@@ -10,4 +10,14 @@ bindsTo = [ "sshd@%i.service" ];
wantedBy = [ "sshd@.service" ]; serviceConfig.ExecStart = "${pkgs.systemd}/bin/systemd-inhibit --mode block --what sleep --who 'ssh session '%I --why 'session still active' ${pkgs.coreutils}/bin/sleep infinity"; }; + + services.syncthing = { + systemService = false; + user = "alin"; + group = "users"; + dataDir = "/home/alan/.config/syncthing"; + }; + systemd.user.services.syncthing.environment = { + LOGGER_DISCARD = "1"; + }; }