This commit is contained in:
2026-03-04 22:03:52 +01:00
parent 9904f1f387
commit 6710f74901
2 changed files with 291 additions and 330 deletions
+291 -311
View File
File diff suppressed because it is too large Load Diff
-19
View File
@@ -1,20 +1 @@
{ 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}";
};
};
}