.
This commit is contained in:
+311
-291
File diff suppressed because it is too large
Load Diff
@@ -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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user