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

19 lines
389 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
desktopEnv.hyprland.hyprlock.enable =
lib.mkEnableOption "Enables hyprlock.";
};
config = lib.mkIf config.desktopEnv.hyprland.hyprlock.enable {
# Packages that should be installed to the user profile.
2024-04-07 22:16:33 -04:00
home.packages = with pkgs; [hyprlock];
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
};
}