os/users/teutat3s/mnx.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
965 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
flake,
...
}:
let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in {
config = {
age.secrets."mnx-bonanza-pf1.ovpn" = {
file = "${flake.self}/secrets/mnx-bonanza-pf1.ovpn.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
2024-02-07 13:13:18 +00:00
tmate
];
};
};
}