1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00
home-manager/tests/modules/services/udiskie/no-tray.nix

19 lines
443 B
Nix
Raw Normal View History

2022-08-22 17:01:54 +02:00
{
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}
'';
};
}