mv mullvad to module

This commit is contained in:
smayzy
2025-07-10 16:20:06 +02:00
parent 7c40fea9b0
commit 168492c26b
6 changed files with 27 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./mullvad.nix
];
}
+18
View File
@@ -0,0 +1,18 @@
{ 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
];
};
}