1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-06 05:13:28 +02:00
home-manager/tests/modules/services/pasystray/service.nix
Motiejus Jakštys 8045eb45a7
pasystray: add extraOptions
Allows a user to, for example, add the `-g` option.

Also add a basic test case.
2023-09-19 08:02:18 +02:00

20 lines
351 B
Nix

{ ... }:
{
services.pasystray = {
enable = true;
extraOptions = [ "-g" ];
};
test.stubs = {
pasystray = { };
paprefs = { };
pavucontrol = { };
};
nmt.script = ''
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/pasystray.service)
assertFileContent "$serviceFile" ${./expected.service}
'';
}