From bd8a71e177950017b92dc073feef0f7f5705b67b Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Sun, 29 Dec 2024 11:32:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20Yubikey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can now log in using yubikey. Moved icons for hyprcursor and added a manifest file. --- configuration.nix | 12 +++--------- hyprland/hyprcursor/default.nix | 7 +++++-- .../{icons => hyprcursors}/X_cursor.hlc | Bin .../{icons => hyprcursors}/all-scroll.hlc | Bin .../{icons => hyprcursors}/bd_double_arrow.hlc | Bin .../bottom_left_corner.hlc | Bin .../bottom_right_corner.hlc | Bin .../{icons => hyprcursors}/bottom_side.hlc | Bin .../{icons => hyprcursors}/center_ptr.hlc | Bin .../{icons => hyprcursors}/col-resize.hlc | Bin .../{icons => hyprcursors}/color-picker.hlc | Bin .../{icons => hyprcursors}/context-menu.hlc | Bin .../hyprcursor/{icons => hyprcursors}/copy.hlc | Bin .../{icons => hyprcursors}/cross.hlc | Bin .../{icons => hyprcursors}/crossed_circle.hlc | Bin .../{icons => hyprcursors}/dnd_no_drop.hlc | Bin .../{icons => hyprcursors}/dotbox.hlc | Bin .../{icons => hyprcursors}/fd_double_arrow.hlc | Bin .../{icons => hyprcursors}/hand1.hlc | Bin .../{icons => hyprcursors}/hand2.hlc | Bin .../{icons => hyprcursors}/left_ptr.hlc | Bin .../{icons => hyprcursors}/left_side.hlc | Bin .../hyprcursor/{icons => hyprcursors}/link.hlc | Bin .../hyprcursor/{icons => hyprcursors}/move.hlc | Bin .../{icons => hyprcursors}/pencil.hlc | Bin .../{icons => hyprcursors}/pirate.hlc | Bin .../hyprcursor/{icons => hyprcursors}/plus.hlc | Bin .../{icons => hyprcursors}/question_arrow.hlc | Bin .../{icons => hyprcursors}/right_ptr.hlc | Bin .../{icons => hyprcursors}/right_side.hlc | Bin .../{icons => hyprcursors}/row-resize.hlc | Bin .../{icons => hyprcursors}/sb_down_arrow.hlc | Bin .../sb_h_double_arrow.hlc | Bin .../{icons => hyprcursors}/sb_left_arrow.hlc | Bin .../{icons => hyprcursors}/sb_right_arrow.hlc | Bin .../{icons => hyprcursors}/sb_up_arrow.hlc | Bin .../sb_v_double_arrow.hlc | Bin .../{icons => hyprcursors}/top_left_corner.hlc | Bin .../top_right_corner.hlc | Bin .../{icons => hyprcursors}/top_side.hlc | Bin .../{icons => hyprcursors}/vertical-text.hlc | Bin .../{icons => hyprcursors}/wayland-cursor.hlc | Bin .../{icons => hyprcursors}/xterm.hlc | Bin .../{icons => hyprcursors}/zoom-in.hlc | Bin .../{icons => hyprcursors}/zoom-out.hlc | Bin hyprland/hyprcursor/manifest.hl | 4 ++++ security.nix | 17 +++++++++++++++++ 47 files changed, 29 insertions(+), 11 deletions(-) rename hyprland/hyprcursor/{icons => hyprcursors}/X_cursor.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/all-scroll.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/bd_double_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/bottom_left_corner.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/bottom_right_corner.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/bottom_side.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/center_ptr.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/col-resize.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/color-picker.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/context-menu.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/copy.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/cross.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/crossed_circle.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/dnd_no_drop.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/dotbox.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/fd_double_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/hand1.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/hand2.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/left_ptr.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/left_side.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/link.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/move.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/pencil.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/pirate.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/plus.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/question_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/right_ptr.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/right_side.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/row-resize.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_down_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_h_double_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_left_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_right_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_up_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/sb_v_double_arrow.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/top_left_corner.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/top_right_corner.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/top_side.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/vertical-text.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/wayland-cursor.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/xterm.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/zoom-in.hlc (100%) rename hyprland/hyprcursor/{icons => hyprcursors}/zoom-out.hlc (100%) create mode 100644 hyprland/hyprcursor/manifest.hl create mode 100644 security.nix diff --git a/configuration.nix b/configuration.nix index 573ad18..8932281 100644 --- a/configuration.nix +++ b/configuration.nix @@ -16,6 +16,7 @@ ./audio.nix ./networking.nix ./development.nix + ./security.nix ]; # Bootloader. @@ -102,10 +103,7 @@ # programs.mtr.enable = true; programs = { - - dconf = { - enable = true; - }; + dconf.enable = true; gnupg.agent.enable = true; @@ -137,11 +135,7 @@ flatpak.enable = true; - gnome = { - gnome-keyring.enable = true; - }; - - pcscd.enable = true; + gnome.gnome-keyring.enable = true; xserver = { enable = true; diff --git a/hyprland/hyprcursor/default.nix b/hyprland/hyprcursor/default.nix index 2f71e8f..2721587 100644 --- a/hyprland/hyprcursor/default.nix +++ b/hyprland/hyprcursor/default.nix @@ -1,13 +1,16 @@ { pkgs, ... }: { + # TODO Not working correctly, see https://github.com/hyprwm/hyprcursor/issues/19 home.packages = with pkgs; [ hyprcursor ]; + # TODO remove in favour of hyprland flake home.file = { - ".local/share/icons/rose-pine-hyprcursor" = { - source = ./icons; + ".local/share/icons/rose-pine-hyprcursor/manifest.hl".source = ./manifest.hl; + ".local/share/icons/rose-pine-hyprcursor/hyprcursors" = { + source = ./hyprcursors; recursive = true; }; }; diff --git a/hyprland/hyprcursor/icons/X_cursor.hlc b/hyprland/hyprcursor/hyprcursors/X_cursor.hlc similarity index 100% rename from hyprland/hyprcursor/icons/X_cursor.hlc rename to hyprland/hyprcursor/hyprcursors/X_cursor.hlc diff --git a/hyprland/hyprcursor/icons/all-scroll.hlc b/hyprland/hyprcursor/hyprcursors/all-scroll.hlc similarity index 100% rename from hyprland/hyprcursor/icons/all-scroll.hlc rename to hyprland/hyprcursor/hyprcursors/all-scroll.hlc diff --git a/hyprland/hyprcursor/icons/bd_double_arrow.hlc b/hyprland/hyprcursor/hyprcursors/bd_double_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/bd_double_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/bd_double_arrow.hlc diff --git a/hyprland/hyprcursor/icons/bottom_left_corner.hlc b/hyprland/hyprcursor/hyprcursors/bottom_left_corner.hlc similarity index 100% rename from hyprland/hyprcursor/icons/bottom_left_corner.hlc rename to hyprland/hyprcursor/hyprcursors/bottom_left_corner.hlc diff --git a/hyprland/hyprcursor/icons/bottom_right_corner.hlc b/hyprland/hyprcursor/hyprcursors/bottom_right_corner.hlc similarity index 100% rename from hyprland/hyprcursor/icons/bottom_right_corner.hlc rename to hyprland/hyprcursor/hyprcursors/bottom_right_corner.hlc diff --git a/hyprland/hyprcursor/icons/bottom_side.hlc b/hyprland/hyprcursor/hyprcursors/bottom_side.hlc similarity index 100% rename from hyprland/hyprcursor/icons/bottom_side.hlc rename to hyprland/hyprcursor/hyprcursors/bottom_side.hlc diff --git a/hyprland/hyprcursor/icons/center_ptr.hlc b/hyprland/hyprcursor/hyprcursors/center_ptr.hlc similarity index 100% rename from hyprland/hyprcursor/icons/center_ptr.hlc rename to hyprland/hyprcursor/hyprcursors/center_ptr.hlc diff --git a/hyprland/hyprcursor/icons/col-resize.hlc b/hyprland/hyprcursor/hyprcursors/col-resize.hlc similarity index 100% rename from hyprland/hyprcursor/icons/col-resize.hlc rename to hyprland/hyprcursor/hyprcursors/col-resize.hlc diff --git a/hyprland/hyprcursor/icons/color-picker.hlc b/hyprland/hyprcursor/hyprcursors/color-picker.hlc similarity index 100% rename from hyprland/hyprcursor/icons/color-picker.hlc rename to hyprland/hyprcursor/hyprcursors/color-picker.hlc diff --git a/hyprland/hyprcursor/icons/context-menu.hlc b/hyprland/hyprcursor/hyprcursors/context-menu.hlc similarity index 100% rename from hyprland/hyprcursor/icons/context-menu.hlc rename to hyprland/hyprcursor/hyprcursors/context-menu.hlc diff --git a/hyprland/hyprcursor/icons/copy.hlc b/hyprland/hyprcursor/hyprcursors/copy.hlc similarity index 100% rename from hyprland/hyprcursor/icons/copy.hlc rename to hyprland/hyprcursor/hyprcursors/copy.hlc diff --git a/hyprland/hyprcursor/icons/cross.hlc b/hyprland/hyprcursor/hyprcursors/cross.hlc similarity index 100% rename from hyprland/hyprcursor/icons/cross.hlc rename to hyprland/hyprcursor/hyprcursors/cross.hlc diff --git a/hyprland/hyprcursor/icons/crossed_circle.hlc b/hyprland/hyprcursor/hyprcursors/crossed_circle.hlc similarity index 100% rename from hyprland/hyprcursor/icons/crossed_circle.hlc rename to hyprland/hyprcursor/hyprcursors/crossed_circle.hlc diff --git a/hyprland/hyprcursor/icons/dnd_no_drop.hlc b/hyprland/hyprcursor/hyprcursors/dnd_no_drop.hlc similarity index 100% rename from hyprland/hyprcursor/icons/dnd_no_drop.hlc rename to hyprland/hyprcursor/hyprcursors/dnd_no_drop.hlc diff --git a/hyprland/hyprcursor/icons/dotbox.hlc b/hyprland/hyprcursor/hyprcursors/dotbox.hlc similarity index 100% rename from hyprland/hyprcursor/icons/dotbox.hlc rename to hyprland/hyprcursor/hyprcursors/dotbox.hlc diff --git a/hyprland/hyprcursor/icons/fd_double_arrow.hlc b/hyprland/hyprcursor/hyprcursors/fd_double_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/fd_double_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/fd_double_arrow.hlc diff --git a/hyprland/hyprcursor/icons/hand1.hlc b/hyprland/hyprcursor/hyprcursors/hand1.hlc similarity index 100% rename from hyprland/hyprcursor/icons/hand1.hlc rename to hyprland/hyprcursor/hyprcursors/hand1.hlc diff --git a/hyprland/hyprcursor/icons/hand2.hlc b/hyprland/hyprcursor/hyprcursors/hand2.hlc similarity index 100% rename from hyprland/hyprcursor/icons/hand2.hlc rename to hyprland/hyprcursor/hyprcursors/hand2.hlc diff --git a/hyprland/hyprcursor/icons/left_ptr.hlc b/hyprland/hyprcursor/hyprcursors/left_ptr.hlc similarity index 100% rename from hyprland/hyprcursor/icons/left_ptr.hlc rename to hyprland/hyprcursor/hyprcursors/left_ptr.hlc diff --git a/hyprland/hyprcursor/icons/left_side.hlc b/hyprland/hyprcursor/hyprcursors/left_side.hlc similarity index 100% rename from hyprland/hyprcursor/icons/left_side.hlc rename to hyprland/hyprcursor/hyprcursors/left_side.hlc diff --git a/hyprland/hyprcursor/icons/link.hlc b/hyprland/hyprcursor/hyprcursors/link.hlc similarity index 100% rename from hyprland/hyprcursor/icons/link.hlc rename to hyprland/hyprcursor/hyprcursors/link.hlc diff --git a/hyprland/hyprcursor/icons/move.hlc b/hyprland/hyprcursor/hyprcursors/move.hlc similarity index 100% rename from hyprland/hyprcursor/icons/move.hlc rename to hyprland/hyprcursor/hyprcursors/move.hlc diff --git a/hyprland/hyprcursor/icons/pencil.hlc b/hyprland/hyprcursor/hyprcursors/pencil.hlc similarity index 100% rename from hyprland/hyprcursor/icons/pencil.hlc rename to hyprland/hyprcursor/hyprcursors/pencil.hlc diff --git a/hyprland/hyprcursor/icons/pirate.hlc b/hyprland/hyprcursor/hyprcursors/pirate.hlc similarity index 100% rename from hyprland/hyprcursor/icons/pirate.hlc rename to hyprland/hyprcursor/hyprcursors/pirate.hlc diff --git a/hyprland/hyprcursor/icons/plus.hlc b/hyprland/hyprcursor/hyprcursors/plus.hlc similarity index 100% rename from hyprland/hyprcursor/icons/plus.hlc rename to hyprland/hyprcursor/hyprcursors/plus.hlc diff --git a/hyprland/hyprcursor/icons/question_arrow.hlc b/hyprland/hyprcursor/hyprcursors/question_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/question_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/question_arrow.hlc diff --git a/hyprland/hyprcursor/icons/right_ptr.hlc b/hyprland/hyprcursor/hyprcursors/right_ptr.hlc similarity index 100% rename from hyprland/hyprcursor/icons/right_ptr.hlc rename to hyprland/hyprcursor/hyprcursors/right_ptr.hlc diff --git a/hyprland/hyprcursor/icons/right_side.hlc b/hyprland/hyprcursor/hyprcursors/right_side.hlc similarity index 100% rename from hyprland/hyprcursor/icons/right_side.hlc rename to hyprland/hyprcursor/hyprcursors/right_side.hlc diff --git a/hyprland/hyprcursor/icons/row-resize.hlc b/hyprland/hyprcursor/hyprcursors/row-resize.hlc similarity index 100% rename from hyprland/hyprcursor/icons/row-resize.hlc rename to hyprland/hyprcursor/hyprcursors/row-resize.hlc diff --git a/hyprland/hyprcursor/icons/sb_down_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_down_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_down_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_down_arrow.hlc diff --git a/hyprland/hyprcursor/icons/sb_h_double_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_h_double_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_h_double_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_h_double_arrow.hlc diff --git a/hyprland/hyprcursor/icons/sb_left_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_left_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_left_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_left_arrow.hlc diff --git a/hyprland/hyprcursor/icons/sb_right_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_right_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_right_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_right_arrow.hlc diff --git a/hyprland/hyprcursor/icons/sb_up_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_up_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_up_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_up_arrow.hlc diff --git a/hyprland/hyprcursor/icons/sb_v_double_arrow.hlc b/hyprland/hyprcursor/hyprcursors/sb_v_double_arrow.hlc similarity index 100% rename from hyprland/hyprcursor/icons/sb_v_double_arrow.hlc rename to hyprland/hyprcursor/hyprcursors/sb_v_double_arrow.hlc diff --git a/hyprland/hyprcursor/icons/top_left_corner.hlc b/hyprland/hyprcursor/hyprcursors/top_left_corner.hlc similarity index 100% rename from hyprland/hyprcursor/icons/top_left_corner.hlc rename to hyprland/hyprcursor/hyprcursors/top_left_corner.hlc diff --git a/hyprland/hyprcursor/icons/top_right_corner.hlc b/hyprland/hyprcursor/hyprcursors/top_right_corner.hlc similarity index 100% rename from hyprland/hyprcursor/icons/top_right_corner.hlc rename to hyprland/hyprcursor/hyprcursors/top_right_corner.hlc diff --git a/hyprland/hyprcursor/icons/top_side.hlc b/hyprland/hyprcursor/hyprcursors/top_side.hlc similarity index 100% rename from hyprland/hyprcursor/icons/top_side.hlc rename to hyprland/hyprcursor/hyprcursors/top_side.hlc diff --git a/hyprland/hyprcursor/icons/vertical-text.hlc b/hyprland/hyprcursor/hyprcursors/vertical-text.hlc similarity index 100% rename from hyprland/hyprcursor/icons/vertical-text.hlc rename to hyprland/hyprcursor/hyprcursors/vertical-text.hlc diff --git a/hyprland/hyprcursor/icons/wayland-cursor.hlc b/hyprland/hyprcursor/hyprcursors/wayland-cursor.hlc similarity index 100% rename from hyprland/hyprcursor/icons/wayland-cursor.hlc rename to hyprland/hyprcursor/hyprcursors/wayland-cursor.hlc diff --git a/hyprland/hyprcursor/icons/xterm.hlc b/hyprland/hyprcursor/hyprcursors/xterm.hlc similarity index 100% rename from hyprland/hyprcursor/icons/xterm.hlc rename to hyprland/hyprcursor/hyprcursors/xterm.hlc diff --git a/hyprland/hyprcursor/icons/zoom-in.hlc b/hyprland/hyprcursor/hyprcursors/zoom-in.hlc similarity index 100% rename from hyprland/hyprcursor/icons/zoom-in.hlc rename to hyprland/hyprcursor/hyprcursors/zoom-in.hlc diff --git a/hyprland/hyprcursor/icons/zoom-out.hlc b/hyprland/hyprcursor/hyprcursors/zoom-out.hlc similarity index 100% rename from hyprland/hyprcursor/icons/zoom-out.hlc rename to hyprland/hyprcursor/hyprcursors/zoom-out.hlc diff --git a/hyprland/hyprcursor/manifest.hl b/hyprland/hyprcursor/manifest.hl new file mode 100644 index 0000000..99cc530 --- /dev/null +++ b/hyprland/hyprcursor/manifest.hl @@ -0,0 +1,4 @@ +name = rose-pine-hyprcursor +description = BreezeX remixed with Rose Pine remixed to Hyprcursor format +version = 0.3.2 +cursors_directory = hyprcursors diff --git a/security.nix b/security.nix new file mode 100644 index 0000000..c2eaa45 --- /dev/null +++ b/security.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + yubioath-flutter + ]; + + security.pam.services = { + login.u2fAuth = true; + sudo.u2fAuth = true; + }; + + services = { + pcscd.enable = true; + udev.packages = with pkgs; [ yubikey-personalization ]; + }; +}