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

@ -3,18 +3,13 @@
inputs,
pkgs,
...
}: let
primaryMonitorName =
if builtins.length config.monitors > 0
then (builtins.elemAt config.monitors 0).name
else "";
in {
}: {
environment.systemPackages = [
inputs.fireproof-shell.packages.${pkgs.system}.fireproof-shell
];
programs.fireproof-shell = {
enable = true;
systemd = true;
monitor.primary = primaryMonitorName;
monitor.primary = (builtins.head config.monitors).name or "";
};
}