mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 19:13:27 +00:00
3895469036
This is needed to make fnott bus-activatable. Otherwise it won't be started when a bus request is made [0]. Done in the same way as e.g. dunst sets that up [1,2]. [0] https://www.freedesktop.org/software/systemd/man/systemd.service.html#id-1.10.6 [1] https://github.com/nix-community/home-manager/blob/master/modules/services/dunst.nix#L139 [2] https://github.com/dunst-project/dunst/blob/master/org.knopwob.dunst.service.in
20 lines
483 B
Nix
20 lines
483 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
services.fnott = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@fnott@"; };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/fnott.service \
|
|
${./systemd-user-service-expected.service}
|
|
|
|
assertFileContent \
|
|
home-files/.local/share/dbus-1/services/fnott.service \
|
|
${./systemd-user-dbus-service-expected.service}
|
|
'';
|
|
};
|
|
}
|