mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 19:43:17 +00:00
32 lines
709 B
Nix
32 lines
709 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
services.blanket = { enable = true; };
|
||
|
|
||
|
test.stubs.blanket = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
clientServiceFile=home-files/.config/systemd/user/blanket.service
|
||
|
|
||
|
assertFileExists $clientServiceFile
|
||
|
assertFileContent $clientServiceFile ${
|
||
|
builtins.toFile "expected.service" ''
|
||
|
[Install]
|
||
|
WantedBy=graphical-session.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=@blanket@/bin/blanket --gapplication-service
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
|
||
|
[Unit]
|
||
|
After=graphical-session-pre.target
|
||
|
Description=Blanket daemon
|
||
|
PartOf=graphical-session.target
|
||
|
PartOf=pipewire.service
|
||
|
Requires=dbus.service
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|