mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
namespace hooks via subshell
This commit is contained in:
parent
0e658ad7f7
commit
92467bb9a8
@ -155,11 +155,13 @@ rec {
|
|||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = types.functionTo types.str;
|
type = types.functionTo types.str;
|
||||||
default = args:
|
default = args:
|
||||||
lib.concatStrings [
|
lib.concatStringsSep "\n" [
|
||||||
|
"(" # subshell for namespacing
|
||||||
(diskoLib.defineHookVariables { inherit config options; })
|
(diskoLib.defineHookVariables { inherit config options; })
|
||||||
config.preCreateHook
|
config.preCreateHook
|
||||||
(default args)
|
(default args)
|
||||||
config.postCreateHook
|
config.postCreateHook
|
||||||
|
")"
|
||||||
];
|
];
|
||||||
description = "Creation script";
|
description = "Creation script";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user