home-manager/tests/modules/services/udiskie/basic.nix

16 lines
396 B
Nix
Raw Normal View History

2022-08-22 15:01:54 +00:00
{
config = {
services.udiskie.enable = true;
test.stubs.udiskie = { };
nmt.script = ''
serviceFile="home-files/.config/systemd/user/udiskie.service"
assertFileRegex "$serviceFile" 'After=tray\.target'
assertFileRegex "$serviceFile" 'Requires=tray\.target'
assertFileContent "home-files/.config/udiskie/config.yml" \
${./basic.yml}
'';
};
}