os/users/teutat3s/mnx.nix

53 lines
1.1 KiB
Nix

{
config,
pkgs,
lib,
self,
...
}:
with lib; let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in {
config = {
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;
};
environment = {
systemPackages = with pkgs; [
networkmanager-fortisslvpn
networkmanager-openconnect
];
};
services.openvpn.servers = {
bonanzaVPN = {
config = ''config ${config.age.secrets."mnx-bonanza-pf1.ovpn".path}'';
autoStart = false;
};
};
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
prr
];
};
};
}