mirror of
https://github.com/nix-community/home-manager
synced 2024-12-11 20:39:49 +01:00
8a175a8913
Fixes tests that are affected by <https://github.com/NixOS/nixpkgs/pull/333744>.
26 lines
675 B
Nix
26 lines
675 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
|
|
'';
|
|
}
|