This commit is contained in:
2026-03-04 19:54:44 +01:00
parent 484c97ed53
commit bad4427166
3 changed files with 298 additions and 296 deletions
+293 -292
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -1457,10 +1457,10 @@ The configuration is done in the home manager section.
** Setting the config
#+begin_src nix :tangle configuration/end_script.nix :noweb tangle :mkdirp yes
{ lib, config, pkgs, flakeRoot, ... }:
{ config, pkgs, flakeRoot, lib, ... }:
let
scriptPath = flakeRoot + "/assets/scripts/end_script.sh";
scriptExists = lib.systems.lib.fileExists scriptPath;
scriptExists = builtins.pathExists scriptPath;
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {
@@ -1473,6 +1473,7 @@ in
'';
};
}
#+end_src
** Services
+2 -2
View File
@@ -1,7 +1,7 @@
{ lib, config, pkgs, flakeRoot, ... }:
{ config, pkgs, flakeRoot, lib, ... }:
let
scriptPath = flakeRoot + "/assets/scripts/end_script.sh";
scriptExists = lib.systems.lib.fileExists scriptPath;
scriptExists = builtins.pathExists scriptPath;
in
{
systemd.user.services.endScript = lib.mkIf scriptExists {