Skip to content

Commit

Permalink
use tailscale dns in vms
Browse files Browse the repository at this point in the history
  • Loading branch information
heywoodlh committed Oct 16, 2024
1 parent cb043d3 commit 7861a1b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions nixos/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@

# Enable networking
networking = {
networkmanager.enable = true;
networkmanager = {
enable = true;
# Prefer tailscale dns
insertNameservers = [
"100.100.100.100"
];
};
resolvconf.extraConfig = ''
prepend_nameservers=100.100.100.100
search_domains=barn-banana.ts.net
'';
hosts = {
"100.69.64.103" = [
"attic"
Expand All @@ -37,12 +47,7 @@
# Disable bluetooth
hardware.bluetooth.enable = lib.mkForce false;

# Append ts net to SSH
programs.ssh.extraConfig = ''
CanonicalizeHostname yes
CanonicalDomains barn-banana.ts.net
'';

# Enable caffeine
home-manager.users.heywoodlh.dconf.settings = {
"org/gnome/shell/extensions/caffeine" = {
toggle-state = true;
Expand Down

0 comments on commit 7861a1b

Please sign in to comment.