1767649379
This commit is contained in:
@@ -18,10 +18,14 @@ in
|
||||
allowedTCPPorts = [
|
||||
# Sunshine
|
||||
47984 47989 48010
|
||||
# SyncThing
|
||||
8384 22000
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
# Sunshine
|
||||
47998 47999 48000 48010
|
||||
# SyncThing
|
||||
22000 21027
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
streamcontroller
|
||||
onlyoffice-desktopeditors
|
||||
cosmic-ext-tweaks
|
||||
syncthing
|
||||
];
|
||||
|
||||
# Programs with extra configuration
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
settings = import ../settings.nix;
|
||||
in
|
||||
{
|
||||
# Hardened OpenSSH
|
||||
services.openssh = {
|
||||
@@ -53,6 +56,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
group = "wheel";
|
||||
user = "${settings.username}";
|
||||
dataDir = "/home/${settings.username}/syncthing/data";
|
||||
configDir = "/home/${settings.username}/syncthing/conf";
|
||||
};
|
||||
};
|
||||
|
||||
services.avahi.publish.enable = true;
|
||||
services.avahi.publish.userServices = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user