mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
21 lines
447 B
Nix
21 lines
447 B
Nix
|
{ config, options, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.profiles.vpn;
|
||
|
in
|
||
|
{
|
||
|
options.profiles.vpn = {
|
||
|
personal.enable = lib.mkEnableOption "personal VPN configuration with Wireguard";
|
||
|
};
|
||
|
|
||
|
config = lib.mkMerge [
|
||
|
(lib.mkIf cfg.personal.enable {
|
||
|
services.tailscale.enable = true;
|
||
|
networking = {
|
||
|
nameservers = [ "100.100.100.100" "8.8.8.8" "1.1.1.1" ];
|
||
|
search = [ "barbel-bee.ts.net" ];
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
}
|