mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
namespace hooks via subshell
This commit is contained in:
parent
0e658ad7f7
commit
92467bb9a8
1 changed files with 3 additions and 1 deletions
|
@ -155,11 +155,13 @@ rec {
|
|||
readOnly = true;
|
||||
type = types.functionTo types.str;
|
||||
default = args:
|
||||
lib.concatStrings [
|
||||
lib.concatStringsSep "\n" [
|
||||
"(" # subshell for namespacing
|
||||
(diskoLib.defineHookVariables { inherit config options; })
|
||||
config.preCreateHook
|
||||
(default args)
|
||||
config.postCreateHook
|
||||
")"
|
||||
];
|
||||
description = "Creation script";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue