2023-05-05 16:10:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2023-11-10 18:48:06 +00:00
|
|
|
flake,
|
2023-05-05 16:10:08 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-06-13 00:14:25 +00:00
|
|
|
let
|
2023-05-05 16:10:08 +00:00
|
|
|
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" = {
|
2023-11-10 18:48:06 +00:00
|
|
|
file = "${flake.self}/secrets/mnx-bonanza-pf1.ovpn.age";
|
2023-06-09 15:07:15 +00:00
|
|
|
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
|
2024-02-07 13:13:18 +00:00
|
|
|
tmate
|
2023-05-13 16:47:16 +00:00
|
|
|
];
|
|
|
|
};
|
2023-05-05 16:10:08 +00:00
|
|
|
};
|
|
|
|
}
|