2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.programs.localsend;
|
|
|
|
in {
|
|
|
|
options.custom.programs.localsend.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config =
|
2024-09-13 01:50:53 +00:00
|
|
|
if (versionAtLeast version "24.11")
|
|
|
|
then
|
2024-09-09 00:22:14 +00:00
|
|
|
(mkIf cfg.enable {
|
|
|
|
# https://github.com/localsend/localsend
|
|
|
|
programs.localsend = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
})
|
2024-09-13 01:50:53 +00:00
|
|
|
else {};
|
2024-09-09 00:22:14 +00:00
|
|
|
}
|