chore: simplify primary name statement

This commit is contained in:
Nickolaj Jepsen 2025-02-25 22:58:44 +01:00
parent 2466b1bd41
commit ec9ad1e019
2 changed files with 3 additions and 11 deletions

View file

@ -7,10 +7,7 @@
}:
with lib; let
cfg = config.fireproof;
primaryMonitorName =
if builtins.length config.monitors > 0
then (builtins.elemAt config.monitors 0).name
else "";
primaryMonitorName = (builtins.head config.monitors).name or "";
hyprPkgs = {
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;