diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-15 02:28:55 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-15 02:28:55 +0530 |
| commit | d2333f1c065e10ae64bca006e6efa74f895e3876 (patch) | |
| tree | d906a39179b0db5188aad0a9f4e8599de9705fa1 /modules/scripts | |
| parent | 8065fd76f0970dd2507dab837a6fd3d033ea4f24 (diff) | |
| download | home-manager-config-d2333f1c065e10ae64bca006e6efa74f895e3876.tar.gz home-manager-config-d2333f1c065e10ae64bca006e6efa74f895e3876.zip | |
Some minor refactoring
Diffstat (limited to 'modules/scripts')
| -rw-r--r-- | modules/scripts/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/scripts/default.nix b/modules/scripts/default.nix index e2d7886..f034032 100644 --- a/modules/scripts/default.nix +++ b/modules/scripts/default.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, ... }: @@ -15,7 +14,9 @@ let shellScript = path: { text = '' - #!${pkgs.bash}/bin/bash + #!${ + if config.tools.zsh.enable then (lib.getExe config.programs.zsh.package) else "#!/usr/bin/env sh" + } ${builtins.readFile path} ''; executable = true; |
