Add a deactivation script to the system-manager profile.

This commit is contained in:
R-VdP 2023-02-17 12:37:02 +01:00
parent 4cde2facf9
commit d428df9c72
No known key found for this signature in database

View file

@ -93,12 +93,17 @@ in
--store-path "$(realpath $(dirname ''${0}))" \ --store-path "$(realpath $(dirname ''${0}))" \
"$@" "$@"
''; '';
deactivationScript = pkgs.writeShellScript "deactivate" ''
${system-manager}/bin/system-manager deactivate "$@"
'';
in in
returnIfNoAssertions ( returnIfNoAssertions (
pkgs.linkFarmFromDrvs "system-manager" [ pkgs.linkFarmFromDrvs "system-manager" [
servicesPath servicesPath
etcPath etcPath
activationScript activationScript
deactivationScript
] ]
); );
} }