diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 229e3d22..c98cb9ea 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"; };