1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

volnoti: add test case

This commit is contained in:
Tomodachi94 2024-08-10 14:42:46 -07:00
parent b7c7ff03b0
commit 7a8758875a
3 changed files with 29 additions and 0 deletions

View file

@ -286,6 +286,7 @@ in import nmtSrc {
./modules/services/trayscale
./modules/services/twmn
./modules/services/udiskie
./modules/services/volnoti
./modules/services/window-managers/bspwm
./modules/services/window-managers/herbstluftwm
./modules/services/window-managers/hyprland

View file

@ -0,0 +1 @@
{ volnoti-package-option = ./package-option.nix; }

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
with lib;
{
services.volnoti = {
enable = true;
package = pkgs.writeShellScriptBin "fake-volnoti" ''
true
'';
};
home.stateVersion = "24.05";
test.stubs.volnoti = { };
nmt.script = ''
serviceFile=home-files/.config/systemd/user/volnoti.service
assertFileExists $serviceFile
assertFileContains $serviceFile \
'ExecStart=${lib.getExe config.services.volnoti.package}'
assertFileContains $serviceFile \
'WantedBy=graphical-session.target'
'';
}