From 0f43d5df6a3511dc05028a2790aa37619d0a2d34 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 20 Oct 2017 21:10:44 +0200 Subject: [PATCH] home-environment: add extraBuilderCommands option --- modules/home-environment.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index da0cc68e9..892c20cc8 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} ''; };