about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2023-08-02 20:05:52 +0200
committerGitHub <noreply@github.com>2023-08-02 20:05:52 +0200
commitf8f9f13d57e264aed3896a0229e94111fe82c6f7 (patch)
treeb785c4ee6025ee0a8049306810f19761cbc170f8 /nixos/modules/programs
parentc5488691867569443a065b45ab2991b6c40f9435 (diff)
parent0ed9e35a220b9de5b9462deba3900605e174809d (diff)
downloadnixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar.gz
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar.bz2
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar.lz
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar.xz
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.tar.zst
nixlib-f8f9f13d57e264aed3896a0229e94111fe82c6f7.zip
Merge pull request #246386 from hercules-ci/lib-getExe-dont-make-name-assumption
lib.getExe: Do not make assumptions about the main program
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/oddjobd.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/programs/oddjobd.nix b/nixos/modules/programs/oddjobd.nix
index a37df0482c9a..b0920d007c9e 100644
--- a/nixos/modules/programs/oddjobd.nix
+++ b/nixos/modules/programs/oddjobd.nix
@@ -10,6 +10,11 @@ in
   };
 
   config = lib.mkIf cfg.enable {
+    assertions = [
+      { assertion = false;
+        message = "The oddjob service was found to be broken without NixOS test or maintainer. Please take ownership of this service.";
+      }
+    ];
     systemd.packages = [ cfg.package ];
 
     systemd.services.oddjobd = {
@@ -21,7 +26,7 @@ in
       serviceConfig = {
         Type = "dbus";
         BusName = "org.freedesktop.oddjob";
-        ExecStart = "${lib.getExe cfg.package}/bin/oddjobd";
+        ExecStart = "${lib.getBin cfg.package}/bin/oddjobd";
       };
     };
   };