mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
home-environment: add extraBuilderCommands option
This commit is contained in:
parent
30b9d7f00e
commit
0f43d5df6a
1 changed files with 11 additions and 0 deletions
|
@ -189,6 +189,15 @@ in
|
||||||
type = types.package;
|
type = types.package;
|
||||||
description = "The package containing the complete activation script.";
|
description = "The package containing the complete activation script.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.extraBuilderCommands = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
internal = true;
|
||||||
|
description = ''
|
||||||
|
Extra commands to run in the Home Manager generation builder.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -284,6 +293,8 @@ in
|
||||||
|
|
||||||
ln -s ${config.home-files} $out/home-files
|
ln -s ${config.home-files} $out/home-files
|
||||||
ln -s ${cfg.path} $out/home-path
|
ln -s ${cfg.path} $out/home-path
|
||||||
|
|
||||||
|
${cfg.extraBuilderCommands}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue