1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-14 21:18:44 +02:00
parent 3f6dafe073
commit 79792e5a76
No known key found for this signature in database
24 changed files with 143 additions and 101 deletions

View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
options.profiles.trusted = {
enable = lib.mkEnableOption "trusted";
};
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.trusted;
inherit (config.networking) hostName;
in
{
config = lib.mkIf cfg.enable {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
guiAddress = "${hostName}.tailnet.helveticanonstandard.net:4000";
overrideDevices = false;
overrideFolders = false;
};
};
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.trusted;
in
{
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = "both"; # TODO
};
networking.firewall.trustedInterfaces = [
config.services.tailscale.interfaceName
];
};
}