summaryrefslogtreecommitdiff
path: root/modules/environment
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-10-07 12:39:47 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-10-07 12:41:33 +0200
commite8355cdd938c85b86024d22bd44ed7e3c939e17b (patch)
tree024a3754d1494e3a29ba937e31d09e4715338ce2 /modules/environment
parenta8b47702751e5f53448c65ba1655747a88714445 (diff)
system-build: change type of setEnvironment and setAliases
On NixOS system.build.setEnvironment also is a writeText
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index f30090d..06355f8 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -154,14 +154,16 @@ in {
inherit (cfg) postBuild pathsToLink extraOutputsToInstall;
};
- system.build.setEnvironment = ''
+ system.build.setEnvironment = pkgs.writeText "set-environment" ''
${concatStringsSep "\n" exportVariables}
# Extra initialisation
${cfg.extraInit}
'';
- system.build.setAliases = concatStringsSep "\n" aliasCommands;
+ system.build.setAliases = pkgs.writeText "set-aliases" ''
+ ${concatStringsSep "\n" aliasCommands}
+ '';
};
}