This commit is contained in:
henrov committed 2026-03-04 19:54:44 +01:00
1 parent 484c97ed53
commit bad4427166
3 files changed
+298 -296

No files matched your search

+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 ** 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, config, pkgs, flakeRoot, ... }: { config, pkgs, flakeRoot, lib, ... }:
let let
scriptPath = flakeRoot + "/assets/scripts/end_script.sh"; scriptPath = flakeRoot + "/assets/scripts/end_script.sh";
scriptExists = lib.systems.lib.fileExists scriptPath; scriptExists = builtins.pathExists scriptPath;
in in
{ {
systemd.user.services.endScript = lib.mkIf scriptExists { systemd.user.services.endScript = lib.mkIf scriptExists {
@@ -1473,6 +1473,7 @@ in
''; '';
}; };
} }
#+end_src #+end_src
** Services ** Services
+2 -2
View File
@@ -1,7 +1,7 @@
{ lib, config, pkgs, flakeRoot, ... }: { config, pkgs, flakeRoot, lib, ... }:
let let
scriptPath = flakeRoot + "/assets/scripts/end_script.sh"; scriptPath = flakeRoot + "/assets/scripts/end_script.sh";
scriptExists = lib.systems.lib.fileExists scriptPath; scriptExists = builtins.pathExists scriptPath;
in in
{ {
systemd.user.services.endScript = lib.mkIf scriptExists { systemd.user.services.endScript = lib.mkIf scriptExists {