nix-config/modules/nix/vpn/mullvad.nix
smayzy 9b0b088ecc
All checks were successful
nix flake show / show-flake (push) Successful in 27s
add mullvad service
2025-07-21 10:18:10 +02:00

20 lines
397 B
Nix

{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.mullvad.enable = mkOption {
type = types.bool;
default = false;
description = "mullvad's software";
};
config = mkIf config.smayzy.mullvad.enable {
environment.systemPackages = with pkgs; [
mullvad-vpn
mullvad-browser
];
services.mullvad-vpn.enable = true;
};
}