mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 12:19:48 +01:00
36 lines
848 B
Nix
36 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
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|