Skip to content

Commit 2b8997f

Browse files
committed
hyprlock: install config to searched to location
1 parent 0c3f6ec commit 2b8997f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/hy/hyprlock/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ gcc14Stdenv.mkDerivation (finalAttrs: {
6464
wayland-protocols
6565
];
6666

67+
# Install hyprlock config in location upstream looks
68+
# https://github.com/hyprwm/hyprlock/blob/c976b6a1d135d3743556dc225c80e24918ef1fd5/src/config/ConfigManager.cpp#L185-L191
69+
# https://github.com/hyprwm/hyprutils/blob/6a8bc9d2a4451df12f5179dc0b1d2d46518a90ab/src/path/Path.cpp#L71-L72
70+
postInstall = ''
71+
mkdir -p $out/etc/xdg/hypr
72+
ln -s $out/share/hypr/hyprlock.conf $out/etc/xdg/hypr/hyprlock.conf
73+
'';
74+
6775
passthru.updateScript = nix-update-script { };
6876

6977
meta = {

0 commit comments

Comments
 (0)