nixos-config/modules/nixos/_private/profiles/vpn.nix
Gabriel Arazas 9b7cc8a850
modules: move profiles custom namespace to suites
We now have a "proper" profiles modules ala-nixpkgs so we'll have to move
these to make it less confusing.
2024-01-22 14:48:55 +08:00

21 lines
434 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.suites.vpn;
in
{
options.suites.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" ];
};
})
];
}