This commit is contained in:
2026-03-04 22:01:32 +01:00
parent 41eddeaec7
commit 12897de54f
2 changed files with 330 additions and 291 deletions
+19
View File
@@ -1 +1,20 @@
{ lib, builtins, ... }:
let
scriptPath = "/path/to/your/script";
scriptExists = builtins.pathExists scriptPath;
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {
description = "Run end script after Home Manager";
after = [
"home-manager-activate.service"
"graphical-session.target"
];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${scriptPath}";
};
};
}