home-manager/tests/modules/services/udiskie/no-tray.nix
2022-08-23 20:11:40 +02:00

18 lines
443 B
Nix

{
config = {
services.udiskie = {
enable = true;
tray = "never";
};
test.stubs.udiskie = { };
nmt.script = ''
serviceFile="home-files/.config/systemd/user/udiskie.service"
assertFileNotRegex "$serviceFile" 'After=tray\.target'
assertFileNotRegex "$serviceFile" 'Requires=tray\.target'
assertFileContent "home-files/.config/udiskie/config.yml" \
${./no-tray.yml}
'';
};
}