diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-22 15:36:39 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-22 17:38:53 +0200 |
commit | b4afe5b7bc96ba0b77222562be97d5d649eb59d7 (patch) | |
tree | 4ffc6154a71c7094f3aefc09bb7235c4ac72fd2d /nixos | |
parent | fa3826dcf40abec1f8c1c8798a761e9ff7a4ab19 (diff) | |
download | nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar.gz nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar.bz2 nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar.lz nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar.xz nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.tar.zst nixlib-b4afe5b7bc96ba0b77222562be97d5d649eb59d7.zip |
dbus: Use upstream units
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/system/dbus.nix | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix index 8cc655803c59..8d02a6404ac1 100644 --- a/nixos/modules/services/system/dbus.nix +++ b/nixos/modules/services/system/dbus.nix @@ -16,7 +16,7 @@ let buildCommand = '' ensureDir $out - cp -v ${pkgs.dbus_daemon}/etc/dbus-1/system.conf $out/system.conf + cp -v ${pkgs.dbus.daemon}/etc/dbus-1/system.conf $out/system.conf # !!! Hm, these `sed' calls are rather error-prone... @@ -31,7 +31,7 @@ let -e 's|<standard_system_servicedirs/>|${systemServiceDirs}|' \ -e 's|<includedir>system.d</includedir>|${systemIncludeDirs}|' - cp ${pkgs.dbus_daemon}/etc/dbus-1/session.conf $out/session.conf + cp ${pkgs.dbus.daemon}/etc/dbus-1/session.conf $out/session.conf # Add the services and session.d directories to the session bus # search path. @@ -97,7 +97,7 @@ in config = mkIf cfg.enable { - environment.systemPackages = [ pkgs.dbus_daemon pkgs.dbus_tools ]; + environment.systemPackages = [ pkgs.dbus.daemon pkgs.dbus_tools ]; environment.etc = singleton { source = configDir; @@ -113,30 +113,7 @@ in users.extraGroups.messagebus.gid = config.ids.gids.messagebus; - # FIXME: these are copied verbatim from the dbus source tree. We - # should install and use the originals. - systemd.units."dbus.socket".text = - '' - [Unit] - Description=D-Bus System Message Bus Socket - - [Socket] - ListenStream=/var/run/dbus/system_bus_socket - ''; - - systemd.units."dbus.service".text = - '' - [Unit] - Description=D-Bus System Message Bus - Requires=dbus.socket - - [Service] - ExecStartPre=${pkgs.dbus_tools}/bin/dbus-uuidgen --ensure - ExecStartPre=-${pkgs.coreutils}/bin/rm -f /var/run/dbus/pid - ExecStart=${pkgs.dbus_daemon}/bin/dbus-daemon --system --address=systemd: --nofork --systemd-activation - ExecReload=${pkgs.dbus_tools}/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig - OOMScoreAdjust=-900 - ''; + systemd.packages = [ pkgs.dbus.daemon ]; security.setuidOwners = singleton { program = "dbus-daemon-launch-helper"; |