summary refs log tree commit diff
path: root/nixos/modules/services/system
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-27 23:36:41 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 22:45:54 +0100
commit41c8f9598ede18fe2185a922be4730cbe8530843 (patch)
treecaf494074e348fda974cd9465ab90b26e6485a94 /nixos/modules/services/system
parentdf4a3cc9f94ff21e20f64206c47c2f2e354ed299 (diff)
downloadnixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar.gz
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar.bz2
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar.lz
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar.xz
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.tar.zst
nixlib-41c8f9598ede18fe2185a922be4730cbe8530843.zip
Remove dead code
Diffstat (limited to 'nixos/modules/services/system')
-rw-r--r--nixos/modules/services/system/dbus.nix37
1 files changed, 1 insertions, 36 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix
index eab876be76d3..196fa40c551f 100644
--- a/nixos/modules/services/system/dbus.nix
+++ b/nixos/modules/services/system/dbus.nix
@@ -122,7 +122,7 @@ in
         [Socket]
         ListenStream=/var/run/dbus/system_bus_socket
       '';
-      
+
     systemd.units."dbus.service".text =
       ''
         [Unit]
@@ -137,41 +137,6 @@ in
         OOMScoreAdjust=-900
       '';
 
-    /*
-    jobs.dbus =
-      { startOn = "started udev and started syslogd";
-      
-        restartIfChanged = false;
-        
-        path = [ pkgs.dbus_daemon pkgs.dbus_tools ];
-
-        preStart =
-          ''
-            mkdir -m 0755 -p ${homeDir}
-            chown messagebus ${homeDir}
-
-            mkdir -m 0755 -p /var/lib/dbus
-            dbus-uuidgen --ensure
-
-            rm -f ${homeDir}/pid
-          '';
-
-        daemonType = "fork";
-
-        exec = "dbus-daemon --system";
-
-        postStop =
-          ''
-            # !!! Hack: doesn't belong here.
-            pid=$(cat /var/run/ConsoleKit/pid || true)
-            if test -n "$pid"; then
-                kill $pid || true
-                rm -f /var/run/ConsoleKit/pid
-            fi
-          '';
-      };
-    */    
-
     security.setuidOwners = singleton
       { program = "dbus-daemon-launch-helper";
         source = "${pkgs.dbus_daemon}/libexec/dbus-daemon-launch-helper";