aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2017-10-20 21:10:44 +0200
committerRobert Helgesson <robert@rycee.net>2017-10-21 00:22:05 +0200
commit0f43d5df6a3511dc05028a2790aa37619d0a2d34 (patch)
tree8a7635211321e27d2184a8b8d966aa5975d897dd /modules
parent30b9d7f00ee5fb3a443682f0db3a17e12ab8ee59 (diff)
home-environment: add extraBuilderCommands option
Diffstat (limited to 'modules')
-rw-r--r--modules/home-environment.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index da0cc68e9b9..892c20cc806 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -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}
'';
};