From 794d08a1d8647d04d32a16c25944671436f38db2 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 18 May 2021 00:18:57 +0200 Subject: [PATCH] home-environment: generate checked activation script By using `writeShellScript` when writing the activation script we automatically get the right shebang and also get syntax validation. Issue #2015 --- modules/home-environment.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index c08d0ea7e..4d04ef5c0 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -541,9 +541,7 @@ in ] + optionalString (!cfg.emptyActivationPath) "\${PATH:+:}$PATH"; - activationScript = pkgs.writeScript "activation-script" '' - #!${pkgs.runtimeShell} - + activationScript = pkgs.writeShellScript "activation-script" '' set -eu set -o pipefail