feat: tailscale

This commit is contained in:
Madeleine Sydney
2024-12-29 02:48:03 -07:00
parent 3f0cd8d6ba
commit 10dfd4e502
3 changed files with 30 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
sydnix = {
filesystemType = "btrfs";
# gpg.enable = true;
tailscale.enable = true;
users.users = [
"crumb"

9
modules/nixos/hosts.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
config = {
networking.hosts = {
"100.95.131.43" = [ "whitepc" ];
};
};
}

View File

@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.sydnix.tailscale;
in {
options = {
sydnix.tailscale = {
enable = mkEnableOption "Tailscale";
};
};
config = mkIf cfg.enable {
services.tailscale.enable = true;
networking.firewall.trustedInterfaces = [
"36mtailscale0"
];
};
}