HomeVPN: Add feature to automatically enable tailscale and set custom DNS nameserver
This commit is contained in:
14
modules/system-settings/home-vpn.nix
Normal file
14
modules/system-settings/home-vpn.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ self, ... }: {
|
||||
flake.modules.nixos.home-vpn = {
|
||||
imports = with self.modules.nixos; [
|
||||
tailscale
|
||||
resolved
|
||||
];
|
||||
|
||||
services.resolved.extraConfig = ''
|
||||
[Resolve]
|
||||
DNS=10.10.0.1
|
||||
Domains=~veltnet
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user