dotfiles/modules/nixos/services/mullvad.nix
2023-02-20 20:37:37 -05:00

13 lines
243 B
Nix

{ config, pkgs, lib, ... }: {
options.mullvad.enable = lib.mkEnableOption "Mullvad VPN.";
config = lib.mkIf config.mullvad.enable {
services.mullvad-vpn.enable = true;
environment.systemPackages = [ pkgs.mullvad-vpn ];
};
}