nixcfg/homeManagerModules/desktop/hypr/hyprlock/default.nix

20 lines
470 B
Nix
Raw Normal View History

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
...
}: {
options = {
alyraffauf.desktop.hyprland.hyprlock.enable =
lib.mkEnableOption "Enables hyprlock.";
};
config = lib.mkIf config.alyraffauf.desktop.hyprland.hyprlock.enable {
# 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];
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
};
}