Compare commits

..

2 commits

Author SHA1 Message Date
7ad9530040 Server/headscale: update settings 2024-11-06 00:40:41 +01:00
fdad5d88bb Flake: backport headscale changes to stable nixpkgs 2024-11-06 00:40:23 +01:00
8 changed files with 1768 additions and 9 deletions

View file

@ -111,7 +111,9 @@
nixpkgs-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches { nixpkgs-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches {
name = "patched-nixpkgs"; name = "patched-nixpkgs";
src = nixpkgs-raw; src = nixpkgs-raw;
patches = []; patches = [
./nixpkgs-patches/backport_unstable_headscale_changes.patch
];
}; };
# https://discourse.nixos.org/t/proper-way-of-applying-patch-to-system-managed-via-flake/21073/26 # https://discourse.nixos.org/t/proper-way-of-applying-patch-to-system-managed-via-flake/21073/26
nixpkgs-unstable = (import "${nixpkgs-unstable-patched}/flake.nix").outputs {self = inputs.self;}; nixpkgs-unstable = (import "${nixpkgs-unstable-patched}/flake.nix").outputs {self = inputs.self;};

File diff suppressed because it is too large Load diff

View file

@ -18,8 +18,8 @@ in {
}; };
}; };
headscale.settings.dns_config = { headscale.settings.dns= {
nameservers = lib.mkForce ["100.100.0.1"]; nameservers.global = lib.mkForce ["100.100.0.1"];
extra_records = [ extra_records = [
{ {
name = domain; name = domain;

View file

@ -47,7 +47,7 @@ in {
}; };
}; };
}; };
services.headscale.settings.dns_config.extra_records = let services.headscale.settings.dns.extra_records = let
makeRecords = builtins.map (recordName: { makeRecords = builtins.map (recordName: {
name = recordName; name = recordName;
type = "A"; type = "A";

View file

@ -45,7 +45,7 @@ in {
}; };
# Add a record for forgejo # Add a record for forgejo
services.headscale.settings.dns_config.extra_records = [ services.headscale.settings.dns.extra_records = [
{ {
name = "git.everest.tailscale"; name = "git.everest.tailscale";
type = "A"; type = "A";

View file

@ -6,9 +6,9 @@
ip_prefixes = [ ip_prefixes = [
"100.100.0.0/16" "100.100.0.0/16"
]; ];
dns_config = { dns = {
base_domain = "tailscale"; base_domain = "tailscale";
nameservers = ["9.9.9.9"]; nameservers.global = ["9.9.9.9"];
override_local_dns = true; override_local_dns = true;
}; };
}; };

View file

@ -40,7 +40,7 @@
}; };
# Add a record for syncthing # Add a record for syncthing
services.headscale.settings.dns_config.extra_records = [ services.headscale.settings.dns.extra_records = [
{ {
name = "sync.everest.tailscale"; name = "sync.everest.tailscale";
type = "A"; type = "A";

View file

@ -38,7 +38,7 @@ in {
}; };
# Add a record for transmission # Add a record for transmission
services.headscale.settings.dns_config.extra_records = [ services.headscale.settings.dns.extra_records = [
{ {
name = "transmission.everest.tailscale"; name = "transmission.everest.tailscale";
type = "A"; type = "A";