2023-05-05 16:10:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
in {
|
2023-05-13 16:47:16 +00:00
|
|
|
config = {
|
2023-06-09 15:07:15 +00:00
|
|
|
age.secrets."mnx-bonanza-pf1.ovpn" = {
|
|
|
|
file = "${self}/secrets/mnx-bonanza-pf1.ovpn.age";
|
|
|
|
mode = "600";
|
|
|
|
owner = psCfg.user.name;
|
|
|
|
};
|
|
|
|
age.secrets."mnx-bonanza-pf1.p12" = {
|
|
|
|
file = "${self}/secrets/mnx-bonanza-pf1.p12.age";
|
|
|
|
mode = "600";
|
|
|
|
owner = psCfg.user.name;
|
|
|
|
};
|
|
|
|
|
2023-05-13 16:47:16 +00:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
networkmanager-fortisslvpn
|
2023-05-17 21:53:51 +00:00
|
|
|
networkmanager-openconnect
|
2023-05-13 16:47:16 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-06-09 15:07:15 +00:00
|
|
|
services.openvpn.servers = {
|
|
|
|
bonanzaVPN = {
|
|
|
|
config = ''config ${config.age.secrets."mnx-bonanza-pf1.ovpn".path}'';
|
|
|
|
autoStart = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-13 16:47:16 +00:00
|
|
|
programs._1password-gui = {
|
|
|
|
enable = true;
|
|
|
|
polkitPolicyOwners = ["teutat3s"];
|
|
|
|
};
|
|
|
|
programs._1password.enable = true;
|
|
|
|
|
|
|
|
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
zoom-us
|
|
|
|
slack
|
2023-05-31 18:53:16 +00:00
|
|
|
prr
|
2023-05-13 16:47:16 +00:00
|
|
|
];
|
|
|
|
};
|
2023-05-05 16:10:08 +00:00
|
|
|
};
|
|
|
|
}
|