Compare commits

...

4 commits

Author SHA1 Message Date
5618b31e9f
hypr: lock 1password when using hyprlock 2025-06-29 22:09:38 +10:00
6dbaa5931e
hypr: change animation for polkit window 2025-06-29 22:09:38 +10:00
7f11075af6
hypr: set window rules for 1Password prompts
windows like SSH confirmation and quick access are given a more "system"
appearance like polkit.
2025-06-29 22:09:38 +10:00
32198de640
applications: install 1password properly on linux systems
use the option instead of the package. allows the use of system
authentication to unlock 1password.
2025-06-29 22:09:38 +10:00
5 changed files with 17 additions and 3 deletions

View file

@ -29,6 +29,7 @@
./modules/browser/chromium.nix
./modules/applications/default.nix
./modules/games/linux.nix
./modules/applications/1password.nix
./modules/nix/linux.nix
./modules/shell.nix

View file

@ -0,0 +1,9 @@
{ config, ...}:
{
programs._1password.enable = true;
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "nico" ];
};
}

View file

@ -7,7 +7,6 @@
obsidian
ani-cli
vesktop
_1password-cli
yt-dlp
] ++ lib.optionals pkgs.stdenv.isLinux (with pkgs; [
mpv
@ -18,7 +17,6 @@
obs-studio
blender
gimp3
_1password-gui
signal-desktop-bin
]) ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
iina

View file

@ -276,7 +276,7 @@ windowrulev2 = center, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = float, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = pin, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = stayfocused, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = animation slidein, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = animation gnomed, initialClass:(^polkit-gnome-authentication-agent-1$)
windowrulev2 = dimaround, initialClass:(^opensnitch_ui$)
windowrulev2 = stayfocused, initialClass:(^opensnitch_ui$)
@ -292,5 +292,10 @@ windowrulev2 = noblur, initialTitle:(^Steam Input On-screen Keyboard$)
windowrulev2 = bordersize 0, initialTitle:(^Steam Input On-screen Keyboard$)
windowrulev2 = noshadow, initialTitle:(^Steam Input On-screen Keyboard$)
windowrulev2 = center, initialClass:(^1Password$),floating:1
windowrulev2 = persistentsize, initialClass:(^1Password$),floating:1
windowrulev2 = dimaround, initialClass:(^1Password$),floating:1
windowrulev2 = animation popin, initialClass:(^1Password$),floating:1
# layer rules
layerrule = animation slide right, waybar

View file

@ -5,5 +5,6 @@
IMAGE="$(swww query | rev | cut -f1 -d' ' | rev)"
cp "$IMAGE" /tmp/hyprlock-background
1password --lock
hyprlock