From ac78a46109707040a4093e70200bdca234e1d5d1 Mon Sep 17 00:00:00 2001 From: CI Date: Sun, 29 Jun 2025 11:27:58 +0200 Subject: [PATCH] Add environment.extraSetup --- modules/environment/path.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/environment/path.nix b/modules/environment/path.nix index 58a344b..8c63287 100644 --- a/modules/environment/path.nix +++ b/modules/environment/path.nix @@ -34,6 +34,12 @@ in example = [ "doc" "info" "devdoc" ]; description = "List of additional package outputs to be installed as user packages."; }; + + extraSetup = mkOption { + type = types.lines; + default = ""; + description = "Shell fragments to be run after the system environment has been created. This should only be used for things that need to modify the internals of the environment, e.g. generating MIME caches. The environment being built can be accessed at $out."; + }; }; }; @@ -80,6 +86,8 @@ in inherit (cfg) extraOutputsToInstall; + postBuild = cfg.extraSetup; + meta = { description = "Environment of packages installed through Nix-on-Droid."; };