From fe12a2133682647e321f536f705738b851f895f8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 1 Mar 2024 16:49:28 +0000 Subject: [PATCH] nixos/graphical-client: use the 1password NixOS module We need to install binaries in /run/wrappers, which means we need the NixOS module and can't just install in home-manager. --- ops/nixos/lib/graphical-client.nix | 6 ++++++ ops/nixos/lib/home-manager/graphical-client.nix | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ops/nixos/lib/graphical-client.nix b/ops/nixos/lib/graphical-client.nix index 6c4d705bcd..d955ade7e3 100644 --- a/ops/nixos/lib/graphical-client.nix +++ b/ops/nixos/lib/graphical-client.nix @@ -20,6 +20,12 @@ in services.udev.packages = [ pkgs.qFlipper ]; services.pcscd.enable = true; + programs._1password.enable = true; + programs._1password-gui = { + enable = true; + polkitPolicyOwners = [ "lukegb" ]; + }; + sound.enable = true; hardware.pulseaudio.enable = false; services.pipewire = { diff --git a/ops/nixos/lib/home-manager/graphical-client.nix b/ops/nixos/lib/home-manager/graphical-client.nix index d9f3a64751..da6c630dfb 100644 --- a/ops/nixos/lib/home-manager/graphical-client.nix +++ b/ops/nixos/lib/home-manager/graphical-client.nix @@ -28,7 +28,6 @@ xclip xss-lock depot.nix.pkgs.flameshot - _1password-gui qFlipper discord depot.pkgs.lukegb-vscode