This commit is contained in:
2026-03-04 22:00:54 +01:00
parent da3441e472
commit b6184937bf
2 changed files with 291 additions and 330 deletions
-19
View File
@@ -1,20 +1 @@
{ lib, ... }:
let
scriptPath = "/path/to/your/script";
scriptExists = lib.fileExists 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}";
};
};
}