mv mullvad to module
This commit is contained in:
parent
7c40fea9b0
commit
168492c26b
@ -27,7 +27,6 @@
|
||||
calibre
|
||||
loupe
|
||||
gimp3
|
||||
mullvad-vpn
|
||||
base16-schemes
|
||||
tor
|
||||
wireshark
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
./office
|
||||
./comm
|
||||
./displaymanager
|
||||
./vpn
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
@ -23,6 +23,7 @@ in
|
||||
element.enable = true;
|
||||
webcord.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ in
|
||||
webcord.enable = true;
|
||||
element.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
6
modules/nix/vpn/default.nix
Normal file
6
modules/nix/vpn/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./mullvad.nix
|
||||
];
|
||||
}
|
||||
18
modules/nix/vpn/mullvad.nix
Normal file
18
modules/nix/vpn/mullvad.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user