mirror of
https://github.com/nix-community/home-manager
synced 2024-12-04 17:09:47 +01:00
32 lines
627 B
Nix
32 lines
627 B
Nix
|
{ config, ... }:
|
||
|
|
||
|
{
|
||
|
services.volnoti = {
|
||
|
enable = true;
|
||
|
package = config.lib.test.mkStubPackage {
|
||
|
name = "volnoti";
|
||
|
outPath = "@volnoti@";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.volnoti = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=home-files/.config/systemd/user/volnoti.service
|
||
|
assertFileExists $serviceFile
|
||
|
assertFileContent $serviceFile \
|
||
|
${
|
||
|
builtins.toFile "expected-volnoti.service" ''
|
||
|
[Install]
|
||
|
WantedBy=graphical-session.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=@volnoti@/bin/volnoti -v -n
|
||
|
|
||
|
[Unit]
|
||
|
Description=volnoti
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|