core: explicitly wrap nixos-rebuild

This commit is contained in:
Wroclaw 2024-06-01 03:27:45 +02:00
parent 82bf8ab05f
commit ed66ca84bc

View file

@ -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-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"];}) (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 { wrappedNix = (pkgs.buildEnv {
name = "wrappedNix-${pkgs.nix.version}"; name = "wrappedNix-${pkgs.nix.version}";
paths = [ pkgs.nix ] ++ wrappedNixExecutables false; paths = [ pkgs.nix ] ++ wrappedNixExecutables false;
@ -57,7 +60,8 @@ in
fastfetch fastfetch
smartmontools smartmontools
ddrescue ddrescue
] ++ wrappedNixExecutables true; ] ++ wrappedNixExecutables true
++ wrappedNixosExecutables;
programs.git.enable = true; programs.git.enable = true;
programs.git.config = { programs.git.config = {