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