nixos/modules/desktop/fireproof-shell.nix
2025-02-24 22:20:16 +01:00

15 lines
No EOL
391 B
Nix

{config, 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;
};
}