mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 00:03:54 -05:00
16 lines
385 B
Nix
16 lines
385 B
Nix
{ 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.
|
|
home.packages = with pkgs; [ hyprlock ];
|
|
|
|
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
|
|
};
|
|
}
|