depot/third_party/home-manager/tests/modules/services/swaync/swaync.nix
Default email 4d19ca4703 Project import generated by Copybara.
GitOrigin-RevId: a7117efb3725e6197dd95424136f79147aa35e5b
2024-06-04 11:23:39 -07:00

35 lines
848 B
Nix

{ config, ... }:
{
services.swaync = {
enable = true;
package = config.lib.test.mkStubPackage {
name = "swaync";
outPath = "@swaync@";
};
};
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/swaync.service \
${
builtins.toFile "swaync.service" ''
[Install]
WantedBy=graphical-session.target
[Service]
BusName=org.freedesktop.Notifications
ExecStart=@swaync@/bin/swaync
Restart=on-failure
Type=dbus
[Unit]
After=graphical-session-pre.target
ConditionEnvironment=WAYLAND_DISPLAY
Description=Swaync notification daemon
Documentation=https://github.com/ErikReider/SwayNotificationCenter
PartOf=graphical-session.target
''
}
'';
}