From 42ff409512a94e71ea6b5b2d87b6e262ddc2dbde Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sat, 13 May 2023 18:47:16 +0200 Subject: [PATCH] teutat3s: refactor mnx, use 1password nixos module --- users/teutat3s/home.nix | 3 --- users/teutat3s/mnx.nix | 25 ++++++++++++++++++++----- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/users/teutat3s/home.nix b/users/teutat3s/home.nix index 31be8b27..149ee959 100644 --- a/users/teutat3s/home.nix +++ b/users/teutat3s/home.nix @@ -70,9 +70,6 @@ in { yubikey-agent age-plugin-yubikey cockroach-bin - zoom-us - slack - _1password-gui ]; programs.bash.initExtra = '' source ${config.age.secrets.environment-secrets.path} diff --git a/users/teutat3s/mnx.nix b/users/teutat3s/mnx.nix index 4bf69b46..f1af5732 100644 --- a/users/teutat3s/mnx.nix +++ b/users/teutat3s/mnx.nix @@ -9,10 +9,25 @@ with lib; let psCfg = config.pub-solar; xdg = config.home-manager.users."${psCfg.user.name}".xdg; in { - environment = { - systemPackages = with pkgs; [ - networkmanager-fortisslvpn - openfortivpn - ]; + config = { + environment = { + systemPackages = with pkgs; [ + networkmanager-fortisslvpn + openfortivpn + ]; + }; + + 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 + ]; + }; }; }