Add a deactivation script to the system-manager profile.
This commit is contained in:
parent
4cde2facf9
commit
d428df9c72
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue