Compare commits

...

2 Commits

Author SHA1 Message Date
henrov b6184937bf , 2026-03-04 22:00:54 +01:00
henrov da3441e472 . 2026-03-04 22:00:42 +01:00
3 changed files with 291 additions and 350 deletions
+291 -311
View File
File diff suppressed because it is too large Load Diff
-20
View File
@@ -1457,26 +1457,6 @@ 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, ... }:
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}";
};
};
}
#+end_src #+end_src
-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}";
};
};
}