From 59d14ebb1a64ee69317fd60b70acf5571e0bb9ad Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Wed, 4 Mar 2026 14:33:08 +0100 Subject: [PATCH] New service for end-script.sh --- henrovnix_ok/README.org | 46 ++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/henrovnix_ok/README.org b/henrovnix_ok/README.org index d398d1a35..7e752ea88 100755 --- a/henrovnix_ok/README.org +++ b/henrovnix_ok/README.org @@ -1459,30 +1459,28 @@ The configuration is done in the home manager section. ** Setting the config #+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes -{ lib, config, pkgs, ... }: -let - scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh"; - scriptExists = lib.fileExists "${scriptPath}"; -in -{ - systemd.user.services.endScript = lib.mkIf scriptExists { - description = "Run end script after Home Manager"; - wantedBy = [ "multi-user.target" ]; - after = [ "home-manager-activate.service" ]; - serviceConfig = { - Type = "oneshot"; - WorkingDirectory = "${config.nixpkgs.config}/.."; - Environment = [ - "HOME=${config.users.users.henrov.home}" - ]; - }; - script = '' - ${scriptPath} - ''; - }; -} - - +# { lib, config, pkgs, ... }: +# let +# scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh"; +# scriptExists = lib.fileExists "${scriptPath}"; +# in +# { +# systemd.user.services.endScript = lib.mkIf scriptExists { +# description = "Run end script after Home Manager"; +# wantedBy = [ "multi-user.target" ]; +# after = [ "home-manager-activate.service" ]; +# serviceConfig = { +# Type = "oneshot"; +# WorkingDirectory = "${config.nixpkgs.config}/.."; +# Environment = [ +# "HOME=${config.users.users.henrov.home}" +# ]; +# }; +# script = '' +# ${scriptPath} +# ''; +# }; +# } #+end_src ** Services