nix/homes/modules/de/hyprlock/hyprlock.nix
2026-02-12 18:53:24 +00:00

41 lines
743 B
Nix

{ config, inputs, pkgs, ... }:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
programs.hyprlock = {
enable = true;
# load the theme colors
extraConfig = ''
source = ./colors.conf
source = ./hyprlock/theme.conf
'';
settings = {
general = {
disable_loading_bar = true;
hide_cursor = true;
immediate_render = true;
};
background = [
{
monitor = "";
path = "screenshot";
blur_passes = 3;
blur_size = 4;
}
];
};
};
# extra hyprlock config for organisation
# writes ./hypr to ~/.config/hypr/hyprlock
xdg.configFile."hypr/hyprlock" = {
recursive = true;
source = ./hypr;
};
}