mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
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
1 changed files with 11 additions and 0 deletions
|
@ -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