From ea7482017692d92e123b191abad2ff103280527a Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 14 Sep 2018 21:08:51 +0200 Subject: [PATCH] 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 --- modules/home-environment.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 229e3d22f..c98cb9ea9 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -243,6 +243,15 @@ in 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 = { @@ -373,6 +382,8 @@ in paths = cfg.packages; inherit (cfg) extraOutputsToInstall; + postBuild = cfg.extraProfileCommands; + meta = { description = "Environment of packages installed through home-manager"; };