diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2024-05-21 20:52:42 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2024-05-21 20:55:37 -0400 |
commit | dd0ebdffcd90a9a1d33297f401a776c3b510509e (patch) | |
tree | f027d527ab81b5fb28d26fa4809c8d0ad6465aa5 /nixos | |
parent | 9231977e8649c5ce70e6924df98652538fa82e70 (diff) |
nixos/systemd-stage-1/dbus: Fix systemd services
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/system/dbus.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix index 26f4eba707f92..d84136125f934 100644 --- a/nixos/modules/services/system/dbus.nix +++ b/nixos/modules/services/system/dbus.nix @@ -128,10 +128,14 @@ in contents."/etc/dbus-1".source = pkgs.makeDBusConf { inherit (cfg) apparmor; suidHelper = "/bin/false"; - serviceDirectories = [ pkgs.dbus ]; + serviceDirectories = [ pkgs.dbus config.boot.initrd.systemd.package ]; }; packages = [ pkgs.dbus ]; - storePaths = [ "${pkgs.dbus}/bin/dbus-daemon" ]; + storePaths = [ + "${pkgs.dbus}/bin/dbus-daemon" + "${config.boot.initrd.systemd.package}/share/dbus-1/system-services" + "${config.boot.initrd.systemd.package}/share/dbus-1/system.d" + ]; targets.sockets.wants = [ "dbus.socket" ]; }; }) |