dotfiles/modules/profiles/webis.nix

38 lines
737 B
Nix
Raw Normal View History

2023-05-16 12:13:20 +02:00
{ lib
, config
, pkgs
2023-05-16 12:13:20 +02:00
, ...
}:
let
cfg = config.my.profiles.webis;
2024-05-27 15:09:37 +02:00
inherit (lib) mkEnableOption mkIf;
2023-05-16 12:13:20 +02:00
in
{
options.my.profiles.webis.enable = mkEnableOption "webis profile";
config = mkIf cfg.enable {
2024-05-27 15:09:37 +02:00
my.programs = {
ssh.includeSecrets = [ ../../secrets/webis-ssh.age ];
jetbrains = {
pycharm.enable = true;
pycharm.package = pkgs.jetbrains.pycharm-professional;
};
};
2023-05-16 12:13:20 +02:00
age.secrets.webis = {
file = ../../secrets/webis.age;
name = "webis.ovpn";
};
services.openvpn.servers = {
webis = {
config = "config /run/agenix/webis.ovpn";
autoStart = false;
updateResolvConf = true;
};
};
programs.dconf.enable = true;
2023-05-16 12:13:20 +02:00
};
}