2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
2024-05-26 00:37:20 -04:00
|
|
|
inputs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-03-30 13:58:07 -04:00
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.desktop.hyprland.hyprlock.enable =
|
2024-03-30 13:58:07 -04:00
|
|
|
lib.mkEnableOption "Enables hyprlock.";
|
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprlock.enable {
|
2024-03-30 13:58:07 -04:00
|
|
|
# Packages that should be installed to the user profile.
|
2024-05-26 00:37:20 -04:00
|
|
|
home.packages = with pkgs; [inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprlock];
|
2024-03-30 13:58:07 -04:00
|
|
|
|
|
|
|
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
|
|
|
|
};
|
|
|
|
}
|