This commit is contained in:
2026-03-04 22:04:14 +01:00
parent 6710f74901
commit 5f7af6bbaa
+12
View File
@@ -1457,6 +1457,18 @@ The configuration is done in the home manager section.
** Setting the config ** Setting the config
#+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes #+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes
{ lib, ... }:
{
systemd.user.services.endScript = {
description = "Run end script after Home Manager";
after = [ "home-manager-activate.service" "graphical-session.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "/path/to/your/script";
};
};
}
#+end_src #+end_src