1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 20:41:07 +01:00

swaync: add module

Co-authored-by: Ryan Horiguchi <rhoriguchi@users.noreply.github.com>
This commit is contained in:
Yomi Ikuru 2024-04-27 16:03:11 +01:00 committed by Robert Helgesson
parent 0125041fc9
commit 5632659886
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
6 changed files with 163 additions and 0 deletions

View file

@ -260,6 +260,7 @@ in import nmtSrc {
./modules/services/screen-locker
./modules/services/signaturepdf
./modules/services/swayidle
./modules/services/swaync
./modules/services/swayosd
./modules/services/sxhkd
./modules/services/syncthing/linux

View file

@ -0,0 +1 @@
{ swaync = ./swaync.nix; }

View file

@ -0,0 +1,35 @@
{ 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
''
}
'';
}