diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-10-28 11:11:56 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-07 17:15:22 +1100 |
| commit | 3ea11449387edeac72fbd7791d106af7553be6e2 (patch) | |
| tree | 8ba653a8072517191a9a3f8689ad53e853b30a14 /modules/system | |
| parent | 366b99abfe07ebc0ab56f68b126394344cab00f5 (diff) | |
system: run `shellcheck` on `activate` and `activate-user` scripts
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/system/default.nix b/modules/system/default.nix index 285936c..a1862fa 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -92,6 +92,8 @@ in name = "darwin-system-${cfg.darwinLabel}"; preferLocalBuild = true; + nativeBuildInputs = [ pkgs.shellcheck ]; + activationScript = cfg.activationScripts.script.text; activationUserScript = cfg.activationScripts.userScript.text; inherit (cfg) darwinLabel; @@ -133,6 +135,8 @@ in chmod u+x $out/activate-user unset activationUserScript + shellcheck $out/activate $out/activate-user + echo -n "$systemConfig" > $out/systemConfig echo -n "$darwinLabel" > $out/darwin-version |
