39 lines
843 B
Nix
39 lines
843 B
Nix
{ lib
|
|
, config
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
|
|
let
|
|
cfg = config.my.profiles.webis;
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in
|
|
|
|
{
|
|
options.my.profiles.webis.enable = mkEnableOption "webis profile";
|
|
|
|
config = mkIf cfg.enable {
|
|
clan.core.vars.generators.moritz-webis = {
|
|
prompts.openvpn.description = "the webis openvpn config";
|
|
prompts.openvpn.type = "multiline";
|
|
prompts.openvpn.persist = true;
|
|
share = true;
|
|
};
|
|
|
|
my.programs = {
|
|
jetbrains = {
|
|
pycharm.enable = true;
|
|
pycharm.package = pkgs.jetbrains.pycharm-professional;
|
|
};
|
|
};
|
|
|
|
services.openvpn.servers = {
|
|
webis = {
|
|
config = "config ${config.clan.core.vars.generators.moritz-webis.files.openvpn.path}";
|
|
autoStart = false;
|
|
updateResolvConf = true;
|
|
};
|
|
};
|
|
programs.dconf.enable = true;
|
|
};
|
|
}
|