summary refs log tree commit diff
path: root/modules/services/misc/nix-daemon.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-07-16 14:51:49 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-07-16 14:51:49 +0000
commit6119c399d864739674d2568abd943a41ca09788c (patch)
tree0ceb6cc6d3da3b34f98ac62003ef33019ffdb77e /modules/services/misc/nix-daemon.nix
parent7cb4503ad63e5376abad54d3479649a232df3ef2 (diff)
downloadnixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar.gz
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar.bz2
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar.lz
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar.xz
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.tar.zst
nixpkgs-6119c399d864739674d2568abd943a41ca09788c.zip
* Support tasks in the new Upstart formalism.
* Swap task: fixed removing disabled swap devices.
* Swap task: specified the type of swapDevices.

svn path=/nixos/branches/modular-nixos/; revision=16396
Diffstat (limited to 'modules/services/misc/nix-daemon.nix')
-rw-r--r--modules/services/misc/nix-daemon.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/modules/services/misc/nix-daemon.nix b/modules/services/misc/nix-daemon.nix
index ee8d67f7471..b8911a8cea3 100644
--- a/modules/services/misc/nix-daemon.nix
+++ b/modules/services/misc/nix-daemon.nix
@@ -236,21 +236,18 @@ in
         target = "nix.machines";
       };
 
-  services.extraJobs = [
+  jobs = pkgs.lib.singleton
     { name = "nix-daemon";
 
-      job = ''
-        start on startup
-        stop on shutdown
-        respawn
-        script
+      startOn = "startup";
+
+      script =
+        ''
           export PATH=${if config.nix.distributedBuilds then "${pkgs.openssh}/bin:" else ""}${pkgs.openssl}/bin:${nix}/bin:$PATH
           ${config.nix.envVars}
           exec ${nix}/bin/nix-worker --daemon > /dev/null 2>&1
-        end script
-      '';
-    }
-  ];
+        '';
+    };
 
   environment.shellInit =
     ''