HomeVPN: Add feature to automatically enable tailscale and set custom DNS nameserver
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
(autologin "weckyy702")
|
(autologin "weckyy702")
|
||||||
|
|
||||||
development-tools
|
development-tools
|
||||||
tailscale
|
home-vpn
|
||||||
opentablet
|
opentablet
|
||||||
|
|
||||||
#TODO: laptop specific aspects like powertop
|
#TODO: laptop specific aspects like powertop
|
||||||
|
|||||||
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/system-settings/resolved.nix
Normal file
7
modules/system-settings/resolved.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.resolved = {
|
||||||
|
services.resolved.enable = true;
|
||||||
|
|
||||||
|
networking.networkmanager.dns = "systemd-resolved";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user