fix 1password system auth => needs to be in nixos

current_state
Christian Ott 2 years ago
parent 792fde1201
commit 3ffbf3096e
  1. 15
      configuration.nix
  2. 2
      home.nix
  3. 16
      hyperland/default.nix

@ -157,6 +157,21 @@
networkmanager-openvpn networkmanager-openvpn
]; ];
# https://github.com/nix-community/home-manager/issues/3997
# could not get the workaround with overlay to work in hm
programs._1password = {
enable = true;
};
programs._1password-gui = {
enable = true;
polkitPolicyOwners = ["chrigi"];
};
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;

@ -21,8 +21,6 @@
eza eza
obsidian obsidian
jq jq
_1password
_1password-gui
skypeforlinux skypeforlinux
]; ];

@ -123,6 +123,8 @@ in
"dunst" "dunst"
"waybar" "waybar"
"${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable --indicator" "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable --indicator"
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
]; ];
bind = bind =
@ -133,6 +135,7 @@ in
"$mod, l, exec, hyprlock" # Add a keybinding to lock the screen "$mod, l, exec, hyprlock" # Add a keybinding to lock the screen
"$mod, C, exec, codium" "$mod, C, exec, codium"
"$mod, E, exec, hyprctl dispatch exit" "$mod, E, exec, hyprctl dispatch exit"
"$mod, code:51, exec, 1password" # super + \
",XF86MonBrightnessDown, exec, brightnessctl s 5%-" ",XF86MonBrightnessDown, exec, brightnessctl s 5%-"
",XF86MonBrightnessUp, exec, brightnessctl s +5%" ",XF86MonBrightnessUp, exec, brightnessctl s +5%"
] ]
@ -152,6 +155,19 @@ in
) )
10) 10)
); );
windowrulev2= [
# https://jbmorley.co.uk/posts/2024-02-13-1password-and-hyprland/
"float, title:(1Password)"
"size 70% 70%, title:(1Password)"
"center, title:(1Password)"
"float,class:(org.kde.polkit-kde-authentication-agent-1)"
"opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$"
"bordercolor rgba(ed8796FF), class:org.kde.polkit-kde-authentication-agent-1"
"dimaround, class:org.kde.polkit-kde-authentication-agent-1"
"stayfocused, class:org.kde.polkit-kde-authentication-agent-1"
];
# Bind flags # Bind flags
# l -> locked, will also work when an input inhibitor (e.g. a lockscreen) is active. # l -> locked, will also work when an input inhibitor (e.g. a lockscreen) is active.
# r -> release, will trigger on release of a key. # r -> release, will trigger on release of a key.

Loading…
Cancel
Save

Powered by TurnKey Linux.