home: amneesh: add hypridle, hyprlock and hyprpaper

override pam for unix_chkpwd

Signed-off-by: Amneesh Singh <amneesh@ti.com>
This commit is contained in:
Amneesh Singh
2025-09-10 18:54:55 +05:30
parent 0bab44bf04
commit 346c304427
2 changed files with 21 additions and 0 deletions

17
home/amneesh/hyprlock.nix Normal file
View File

@@ -0,0 +1,17 @@
{
lib,
pkgs,
...
}:
let
standalonePam = pkgs.linux-pam.overrideAttrs (oa: {
postPatch = ''
substituteInPlace modules/module-meson.build \
--replace "sbindir / 'unix_chkpwd'" "'/usr/bin/unix_chkpwd'"
'';
});
in
{
programs.hyprlock.package = lib.mkForce (pkgs.hyprlock.override { pam = standalonePam; });
}