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)
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"
]
++ (
if config.alyraffauf.desktop.hyprland.redShift
then [
++ lib.lists.optionals (config.alyraffauf.desktop.hyprland.redShift) [
"${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent"
(lib.getExe pkgs.gammastep)
]
else []
);
];
screenshot = rec {
bin = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprshot;