New end-script service, recreated nix files

This commit is contained in:
2026-03-04 09:03:25 +01:00
parent 9a77a97fdc
commit 3c9c0e882d
4 changed files with 341 additions and 318 deletions
+14
View File
@@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }: {
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
description = "Run end script after Home Manager";
wantedBy = [ "default.target" ];
after = [ "home-manager-henrov.service" ];
serviceConfig.Type = "oneshot";
script = ''
${pkgs.bash}/bin/bash -c 'cd $HOME && ${./assets/scripts/end_script.sh}'
'';
serviceConfig.Restart = "no";
};
systemd.user.services.endScript.enable = true;
}