mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
19 lines
375 B
Nix
19 lines
375 B
Nix
{
|
|
std,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (std) set;
|
|
in {
|
|
systemd.tmpfiles.rules = set.mapToValues (username: _: "f /var/lib/systemd/linger/${username}") config.users.users;
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
trustedInterfaces = ["tailscale0"];
|
|
allowedUDPPorts = [config.services.tailscale.port];
|
|
};
|
|
|
|
services.tailscale = {
|
|
enable = true;
|
|
};
|
|
}
|