From 5756276bb42fd0cfa550c07895f62e8a54e4cf59 Mon Sep 17 00:00:00 2001 From: Henry Sipp Date: Thu, 3 Jul 2025 18:23:00 -0500 Subject: [PATCH] 1password fix, fingerprint work --- modules/home-manager/hyprland.nix | 2 ++ modules/home-manager/hyprlock.nix | 14 ++++++++++++-- modules/nixos/1password.nix | 3 ++- modules/nixos/hyprland.nix | 10 ++++------ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index f67a0f8..0bc96c4 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -8,4 +8,6 @@ inputs: { enable = true; package = inputs.hyprland.packages.${pkgs.system}.hyprland; }; + services.hyprpolkitagent.enable = true; + } diff --git a/modules/home-manager/hyprlock.nix b/modules/home-manager/hyprlock.nix index 1d22348..f57a23e 100644 --- a/modules/home-manager/hyprlock.nix +++ b/modules/home-manager/hyprlock.nix @@ -25,7 +25,6 @@ in { background = { monitor = ""; path = "screenshot"; - # color = backgroundRgb; blur_passes = 3; brightness = 0.6; }; @@ -37,7 +36,6 @@ in { halign = "center"; valign = "center"; - # inner_color = "rgba(45,53,59,0.8)"; # #2d353b with opacity inner_color = surfaceRgb; outer_color = foregroundRgb; # #d3c6aa outline_thickness = 4; @@ -55,6 +53,18 @@ in { shadow_passes = 0; fade_on_empty = false; }; + + label = { + monitor = ""; + text = "\$FPRINTPROMPT"; + text_align = "center"; + color = "rgb(211, 198, 170)"; + font_size = 24; + font_family = "CaskaydiaMono Nerd Font"; + position = "0, -100"; + halign = "center"; + valign = "center"; +}; }; }; } diff --git a/modules/nixos/1password.nix b/modules/nixos/1password.nix index 888ab23..17af226 100644 --- a/modules/nixos/1password.nix +++ b/modules/nixos/1password.nix @@ -4,6 +4,7 @@ _1password-gui.enable = true; # TODO: Dynamically get user names - # _1password-gui.polkitPolicyOwners = ["henry"]; + _1password-gui.polkitPolicyOwners = ["henry"]; }; + } diff --git a/modules/nixos/hyprland.nix b/modules/nixos/hyprland.nix index 0e0cd8e..bc49325 100644 --- a/modules/nixos/hyprland.nix +++ b/modules/nixos/hyprland.nix @@ -3,14 +3,12 @@ inputs: { pkgs, ... }: { + programs.hyprland = { enable = true; - package = inputs.hyprland.packages.${pkgs.system}.hyprland; - }; + # package = inputs.hyprland.packages.${pkgs.system}.hyprland; + package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; + portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; - xdg.portal = { - enable = true; - extraPortals = [pkgs.xdg-desktop-portal-gtk]; - config.common.default = "*"; }; }