2018-08-04 16:08:54 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./options.nix
|
|
|
|
./systemd.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = lib.modules.mkIf config.services.hylafax.enable {
|
|
|
|
environment.systemPackages = [ pkgs.hylafaxplus ];
|
|
|
|
users.users.uucp = {
|
|
|
|
uid = config.ids.uids.uucp;
|
|
|
|
group = "uucp";
|
|
|
|
description = "Unix-to-Unix CoPy system";
|
|
|
|
isSystemUser = true;
|
|
|
|
inherit (config.users.users.nobody) home;
|
|
|
|
};
|
|
|
|
assertions = [{
|
|
|
|
assertion = config.services.hylafax.modems != {};
|
|
|
|
message = ''
|
|
|
|
HylaFAX cannot be used without modems.
|
|
|
|
Please define at least one modem with
|
2018-09-11 10:38:04 +01:00
|
|
|
<option>config.services.hylafax.modems</option>.
|
2018-08-04 16:08:54 +01:00
|
|
|
'';
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
2019-04-05 15:05:20 +01:00
|
|
|
meta.maintainers = [ lib.maintainers.yarny ];
|
|
|
|
|
2018-08-04 16:08:54 +01:00
|
|
|
}
|