mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00: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.
|
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 = {
|
config = {
|
||||||
|
@ -373,6 +382,8 @@ in
|
||||||
paths = cfg.packages;
|
paths = cfg.packages;
|
||||||
inherit (cfg) extraOutputsToInstall;
|
inherit (cfg) extraOutputsToInstall;
|
||||||
|
|
||||||
|
postBuild = cfg.extraProfileCommands;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Environment of packages installed through home-manager";
|
description = "Environment of packages installed through home-manager";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue