home-manager/tests/modules/services/signaturepdf/basic-configuration.nix

25 lines
515 B
Nix
Raw Normal View History

2023-11-11 21:49:58 +00:00
{ config, pkgs, ... }:
{
services.signaturepdf = {
enable = true;
port = 9494;
extraConfig = { upload_max_filesize = "24M"; };
};
test.stubs = {
signaturepdf = { outPath = "/signaturepdf"; };
xdg-utils = { };
};
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/signaturepdf.service \
${./basic-configuration.service}
assertFileContent \
home-path/share/applications/signaturepdf.desktop \
${./basic-configuration.desktop}
'';
}