mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
1f305c363e
Adds a module to enable managing Remmina, an RDP client, with a Home Manager module, providing a systemd service and mimetype integration that can be disabled if so desired.
20 lines
521 B
Nix
20 lines
521 B
Nix
{ 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">'
|
|
'';
|
|
}
|