feat: create syncthing and pipewire services

This commit is contained in:
Zhongheng Liu 2024-08-08 18:21:49 +08:00
commit 899c1b4a26
5 changed files with 46 additions and 6 deletions

View file

@ -1,6 +1,17 @@
{pkgs, lib, ...}:
{
enable = true;
user = "${config.myUserName}";
pkgs,
config,
lib,
...
}: {
services = {
syncthing = {
enable = true;
user = "${config.myUserName}";
dataDir = "/home/${config.myUserName}/Documents";
configDir = "/home/${config.myUserName}/Documents/.config/syncthing";
};
};
networking.firewall.allowedTCPPorts = [8384 22000];
networking.firewall.allowedUDPPorts = [22000 21027];
}