New service for end-script.sh
This commit is contained in:
+23
-23
@@ -874,7 +874,7 @@ This section describes the main system configuration for the computers that I ha
|
|||||||
./dev/terminal.nix
|
./dev/terminal.nix
|
||||||
./core/boot.nix
|
./core/boot.nix
|
||||||
./services/services.nix
|
./services/services.nix
|
||||||
./end_script.nix
|
# ./end_script.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
<<config-system-packages>>
|
<<config-system-packages>>
|
||||||
@@ -1459,28 +1459,28 @@ 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, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
# let
|
let
|
||||||
# scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
|
scriptPath = "${config.nixpkgs.config}/../assets/scripts/end_script.sh";
|
||||||
# scriptExists = lib.fileExists "${scriptPath}";
|
scriptExists = lib.fileExists "${scriptPath}";
|
||||||
# in
|
in
|
||||||
# {
|
{
|
||||||
# systemd.user.services.endScript = lib.mkIf scriptExists {
|
systemd.user.services.endScript = lib.mkIf scriptExists {
|
||||||
# description = "Run end script after Home Manager";
|
description = "Run end script after Home Manager";
|
||||||
# wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
# after = [ "home-manager-activate.service" ];
|
after = [ "home-manager-activate.service" ];
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# Type = "oneshot";
|
Type = "oneshot";
|
||||||
# WorkingDirectory = "${config.nixpkgs.config}/..";
|
WorkingDirectory = "${config.nixpkgs.config}/..";
|
||||||
# Environment = [
|
Environment = [
|
||||||
# "HOME=${config.users.users.henrov.home}"
|
"HOME=${config.users.users.henrov.home}"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
# script = ''
|
script = ''
|
||||||
# ${scriptPath}
|
${scriptPath}
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
# }
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Services
|
** Services
|
||||||
|
|||||||
Reference in New Issue
Block a user