1
1
Fork 0
nixos/options/custom/programs/localsend.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

22 lines
420 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.programs.localsend;
in {
options.custom.programs.localsend.enable = mkOption {default = false;};
config =
if (versionAtLeast version "24.11")
then
(mkIf cfg.enable {
# https://github.com/localsend/localsend
programs.localsend = {
enable = true;
openFirewall = true;
};
})
else {};
}