2.home-manager/tests/modules/services/volnoti/package-option.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

27 lines
568 B
Nix

{ config, ... }:
{
services.volnoti = {
enable = true;
package = config.lib.test.mkStubPackage {
name = "volnoti";
outPath = "@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
''}
'';
}