..
This commit is contained in:
1 parent
484c97ed53
commit
bad4427166
3 files changed
+298
-296
No files matched your search
+293
-292
File diff suppressed because it is too large.
Load diff
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user