mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
1438f7b664
I forgot to do this when I submitted this module with
commit 12fa95f2d6
.
32 lines
735 B
Nix
32 lines
735 B
Nix
{ 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
|
|
<option>config.services.hylafax.modems</option>.
|
|
'';
|
|
}];
|
|
};
|
|
|
|
meta.maintainers = [ lib.maintainers.yarny ];
|
|
|
|
}
|