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:
parent
0125041fc9
commit
5632659886
6 changed files with 163 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
tests/modules/services/swaync/default.nix
Normal file
1
tests/modules/services/swaync/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ swaync = ./swaync.nix; }
|
||||
35
tests/modules/services/swaync/swaync.nix
Normal file
35
tests/modules/services/swaync/swaync.nix
Normal 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
|
||||
''
|
||||
}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue