about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoerg Thalheim <joerg@thalheim.io>2017-10-09 11:35:06 +0100
committerJoerg Thalheim <joerg@thalheim.io>2017-10-09 11:43:24 +0100
commite34e28e573568a0cad99d3e6aec3f78408d9cdbc (patch)
tree0635b4d439625c7672d0a94534774d953d41d78a
parent2ef1a6c17cb95065f9ca21d33c8ec01fa8793f13 (diff)
downloadnixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar.gz
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar.bz2
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar.lz
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar.xz
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.tar.zst
nixlib-e34e28e573568a0cad99d3e6aec3f78408d9cdbc.zip
nixos/fcron: service needs fcron in PATH
otherwise fcronsighup is not found.
Set PATH to /run/current-system/sw/bin does not seems to be used by service file anyway.
-rw-r--r--nixos/modules/services/scheduling/fcron.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/modules/services/scheduling/fcron.nix b/nixos/modules/services/scheduling/fcron.nix
index af4f9f41fd04..8b87f72811a3 100644
--- a/nixos/modules/services/scheduling/fcron.nix
+++ b/nixos/modules/services/scheduling/fcron.nix
@@ -137,10 +137,7 @@ in
       after = [ "local-fs.target" ];
       wantedBy = [ "multi-user.target" ];
 
-      # FIXME use specific path
-      environment = {
-        PATH = "/run/current-system/sw/bin";
-      };
+      path = [ pkgs.fcron ];
 
       preStart = ''
         install \