From ed66ca84bc0926c3a56bd2c27ca45dbf3162c2aa Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 1 Jun 2024 03:27:45 +0200 Subject: [PATCH] core: explicitly wrap nixos-rebuild --- nix-os/core.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix-os/core.nix b/nix-os/core.nix index 8ab04d8..75cf2dd 100644 --- a/nix-os/core.nix +++ b/nix-os/core.nix @@ -28,6 +28,9 @@ let (mkWrappedExecutable {pkg = pkgs.nix; exe = "nix-build"; wrapperArgs = ["--add-flags" "\"--log-format\"" "--add-flags" "bar${lib.optionalString inEnvironment "-with-logs"}"];}) (mkWrappedExecutable {pkg = pkgs.nix; exe = "nix-shell"; wrapperArgs = ["--add-flags" "\"--log-format\"" "--add-flags" "bar"];}) ]; + wrappedNixosExecutables = [ + (mkWrappedExecutable {pkg = pkgs.nixos-rebuild; wrapperArgs = ["--add-flags" "\"--log-format\"" "--add-flags" "bar"];}) + ]; wrappedNix = (pkgs.buildEnv { name = "wrappedNix-${pkgs.nix.version}"; paths = [ pkgs.nix ] ++ wrappedNixExecutables false; @@ -57,7 +60,8 @@ in fastfetch smartmontools ddrescue - ] ++ wrappedNixExecutables true; + ] ++ wrappedNixExecutables true + ++ wrappedNixosExecutables; programs.git.enable = true; programs.git.config = {