07682fff75
Allows a user to, for example, add the `-g` option.
Also add a basic test case.
(cherry picked from commit 8045eb45a7
)
20 lines
351 B
Nix
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}
|
|
'';
|
|
}
|