hyprland: use lib.optionals for redshift startup

This commit is contained in:
Aly Raffauf 2024-06-10 20:15:27 -04:00
parent a81a230895
commit c3e1bd66cb

View file

@ -135,14 +135,10 @@
(lib.getExe pkgs.mako) (lib.getExe pkgs.mako)
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1" "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"
] ]
++ ( ++ lib.lists.optionals (config.alyraffauf.desktop.hyprland.redShift) [
if config.alyraffauf.desktop.hyprland.redShift
then [
"${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent" "${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent"
(lib.getExe pkgs.gammastep) (lib.getExe pkgs.gammastep)
] ];
else []
);
screenshot = rec { screenshot = rec {
bin = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprshot; bin = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprshot;