mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
26 lines
471 B
Nix
26 lines
471 B
Nix
{
|
|
std,
|
|
config,
|
|
tree,
|
|
...
|
|
}: let
|
|
inherit (std) set;
|
|
in {
|
|
imports = with tree.nixos.roles; [
|
|
bootable
|
|
];
|
|
|
|
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;
|
|
};
|
|
|
|
programs.mosh.enable = true;
|
|
}
|