New service for end-script.sh

This commit is contained in:
2026-03-04 09:07:08 +01:00
parent d9560cad20
commit 86c46f9979
+2 -2
View File
@@ -874,7 +874,7 @@ This section describes the main system configuration for the computers that I ha
./dev/terminal.nix
./core/boot.nix
./services/services.nix
./assets/end_script.nix
./end_script.nix
];
<<config-system-packages>>
@@ -1458,7 +1458,7 @@ The configuration is done in the home manager section.
#+end_src
** Setting the config
#+begin_src nix :tangle assets/end-script.nix :noweb tangle :mkdirp yes
#+begin_src nix :tangle configuration/end-script.nix :noweb tangle :mkdirp yes
{ config, pkgs, lib, ... }: {
systemd.user.services.endScript = lib.mkIf (builtins.pathExists ./assets/scripts/end_script.sh) {
description = "Run end script after Home Manager";