1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-30 21:59:49 +01:00
home-manager/tests/modules/services/remmina/default-config.nix

21 lines
521 B
Nix
Raw Normal View History

{ config, ... }: {
xdg.mimeApps.enable = true;
services.remmina = {
enable = true;
package = config.lib.test.mkStubPackage { };
};
nmt.script = ''
serviceFile='./home-files/.config/systemd/user/remmina.service'
assertFileExists $serviceFile
assertFileRegex $serviceFile 'ExecStart=.*--icon'
mimetypeFile='./home-files/.local/share/mime/packages/application-x-rdp.xml'
assertFileExists $mimetypeFile
assertFileRegex $mimetypeFile '<mime-type type="application/x-rdp">'
'';
}