feat: add hyprlock & hypridle

This commit is contained in:
DACHXY 2025-01-03 22:37:31 +08:00
parent 43bb08b86d
commit e1af19001f
14 changed files with 233 additions and 57 deletions

View file

@ -1,10 +1,17 @@
{ pkgs, nix-version, ... }:
{
pkgs,
lib,
nix-version,
...
}:
let
nerdfont-pkg =
if nix-version == "25.05" then
pkgs.nerd-fonts.caskaydia-cove
else
(pkgs.nerdfonts.override { fonts = [ "CascadiaCode" ]; });
sf-pro-display-bold = pkgs.callPackage ../../pkgs/fonts/sf-pro-display-bold { };
in
{
fonts.packages =
@ -14,10 +21,11 @@ in
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-emoji
sf-pro-display-bold
])
++ ([
++ [
nerdfont-pkg
]);
];
fonts.fontDir.enable = true;

View file

@ -36,9 +36,6 @@
qt5.qtwayland
qt6.qtwayland
swayidle
sway-audio-idle-inhibit # Prevent idle when playing audio
swaylock-effects
wlogout
wl-clipboard
rofi-wayland-unwrapped

View file

@ -2,7 +2,7 @@
{
services.udev.packages = [ pkgs.yubikey-personalization ];
security.pam.services.hyprlock = { };
security.pam.u2f = {
enable = true;
settings.cue = true;