ctucx.git: nixfiles

ctucx' nixfiles

commit c991f485718a2a20441c286a470e9b487cea5447
parent 5aae5355731a95479786eafe05f98417cd53ecb4
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 17 Jun 2024 18:45:34 +0200

configurations/linux/services/systemd-lock-handler: use package from `nixpkgs`
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/configurations/linux/services/systemd-lock-handler.nix b/configurations/linux/services/systemd-lock-handler.nix
@@ -1,18 +1,7 @@
 { config, lib, pkgs, ... }:
 
 let
-  cfg                  = config.ctucxConfig.services.systemd-lock-handler;
-  systemd-lock-handler = pkgs.buildGoModule rec {
-    name = "systemd-lock-handler";
-    src  = pkgs.fetchFromSourcehut {
-      owner  = "~whynothugo";
-      repo   = "systemd-lock-handler";
-      rev    = "cb3f544ef4f2730a27adcfebe0df7556dfeb01bd";
-      sha256 = "sha256-sTVAabwWtyvHuDp/+8FKNbfej1x/egoa9z1jLIMJuBg=";
-    };
-
-    vendorHash = "sha256-dWzojV3tDA5lLdpAQNC9NaADGyvV7dNOS3x8mfgNNtA=";
-  };
+  cfg = config.ctucxConfig.services.systemd-lock-handler;
 
 in {
 

@@ -33,7 +22,7 @@ in {
 
         Service = {
           Type      = "notify";
-          ExecStart = "${systemd-lock-handler}/bin/systemd-lock-handler";
+          ExecStart = "${pkgs.systemd-lock-handler}/lib/systemd-lock-handler";
         };
 
         Install = {