nix-config/modules/nix/vpn/mullvad.nix
smayzy 092579af98
All checks were successful
nix flake show / show-flake (push) Successful in 27s
format with nixfmt to nixpkgs standarts
2025-07-24 19:19:46 +02:00

25 lines
404 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;
};
}