mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
b3f3f50f9e
Allows a user to, for example, add the `-g` option. Also add a basic test case.
19 lines
351 B
Nix
19 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}
|
|
'';
|
|
}
|