stuff
This commit is contained in:
parent
3f6dafe073
commit
79792e5a76
24 changed files with 143 additions and 101 deletions
6
profiles/trusted/default.nix
Normal file
6
profiles/trusted/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.profiles.trusted = {
|
||||
enable = lib.mkEnableOption "trusted";
|
||||
};
|
||||
}
|
21
profiles/trusted/syncthing.nix
Normal file
21
profiles/trusted/syncthing.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
21
profiles/trusted/tailscale.nix
Normal file
21
profiles/trusted/tailscale.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue