1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 21:49:48 +01:00
home-manager/tests/modules/services/remmina/basic-config.nix

27 lines
675 B
Nix
Raw Normal View History

{ config, ... }: {
xdg.mimeApps.enable = true;
services.remmina = {
enable = true;
package = config.lib.test.mkStubPackage { };
addRdpMimeTypeAssoc = false;
systemdService = {
enable = true;
startupFlags = [ "--icon" "--enable-extra-hardening" ];
};
};
nmt.script = ''
serviceFile='./home-files/.config/systemd/user/remmina.service'
assertFileExists $serviceFile
assertFileRegex $serviceFile 'ExecStart=.*/bin/dummy'
assertFileRegex $serviceFile "dummy --icon --enable-extra-hardening"
mimetypeFile='./home-files/.local/share/mime/packages/application-x-rdp.xml'
assertPathNotExists $mimetypeFile
'';
}