mirror of
https://github.com/nix-community/home-manager
synced 2024-09-11 22:06:31 +02:00
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.
27 lines
679 B
Nix
27 lines
679 B
Nix
{ 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
|
|
'';
|
|
}
|