home-environment: add option home.extraProfileCommands
This _internal_ option indicates extra commands that should be run in the `postBuild` step of the profile environment build. Fixes #386
This commit is contained in:
parent
50de1a6885
commit
ea74820176
|
@ -243,6 +243,15 @@ in
|
|||
Extra commands to run in the Home Manager generation builder.
|
||||
'';
|
||||
};
|
||||
|
||||
home.extraProfileCommands = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
internal = true;
|
||||
description = ''
|
||||
Extra commands to run in the Home Manager profile builder.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
@ -373,6 +382,8 @@ in
|
|||
paths = cfg.packages;
|
||||
inherit (cfg) extraOutputsToInstall;
|
||||
|
||||
postBuild = cfg.extraProfileCommands;
|
||||
|
||||
meta = {
|
||||
description = "Environment of packages installed through home-manager";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue