mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 20:31:54 -05:00
16 lines
399 B
Nix
16 lines
399 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
options = {
|
|
desktopEnv.hyprland.hypridle.enable =
|
|
lib.mkEnableOption "Enables hypridle.";
|
|
};
|
|
|
|
config = lib.mkIf config.desktopEnv.hyprland.hypridle.enable {
|
|
|
|
# Packages that should be installed to the user profile.
|
|
home.packages = with pkgs; [ hypridle brightnessctl ];
|
|
|
|
xdg.configFile."hypr/hypridle.conf".source = ./hypridle.conf;
|
|
};
|
|
}
|