From 513dc2591b857e606bb3d6cc58fc95d27d96c097 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 15 Aug 2024 13:06:55 +0200 Subject: [PATCH] nixos-mods/allCommon: shellcheck activation scripts --- nix/nixos-modules/allCommon.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/nixos-modules/allCommon.nix b/nix/nixos-modules/allCommon.nix index 719bc43..c7e9367 100644 --- a/nix/nixos-modules/allCommon.nix +++ b/nix/nixos-modules/allCommon.nix @@ -153,6 +153,12 @@ in ''; }; + # ensure activation scripts are fine + # TODO upstream, probably replacing https://github.com/NixOS/nixpkgs/pull/149932 + system.activatableSystemBuilderCommands = lib.mkAfter '' + ${pkgs.shellcheck}/bin/shellcheck --check-sourced --external-sources --norc --severity=warning $out/activate $out/dry-activate + ''; + time = { hardwareClockInLocalTime = lib.mkDefault false;