home-environment: add extraBuilderCommands option

This commit is contained in:
Silvan Mosberger 2017-10-20 21:10:44 +02:00
parent 30b9d7f00e
commit 6c335abbd2
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7

View file

@ -189,6 +189,15 @@ in
type = types.package;
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 = {
@ -284,6 +293,8 @@ in
ln -s ${config.home-files} $out/home-files
ln -s ${cfg.path} $out/home-path
${cfg.extraBuilderCommands}
'';
};