Skip to content

Commit

Permalink
Revert "aliases: add nixos-rebuild"
Browse files Browse the repository at this point in the history
This reverts commit 0b124c1. We
should really stop adding things that are not packages to
all-packages.nix. For example, having nixos-rebuild.nix in
all-packages.nix causes 'nix-env -qa' to evaluate a NixOS
configuration, which obviously is not good for performance. (We should
probably also remove the 'nixos' attribute from all-packages.nix, but
at least that's a function so nix-env will ignore it.)
  • Loading branch information
edolstra committed Aug 10, 2018
1 parent 4d1332e commit f1c978a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkgs/top-level/aliases.nix
Expand Up @@ -316,8 +316,6 @@ mapAliases ({
(import self.path { localSystem = { inherit system; }; });
callPackage_i686 = pkgsi686Linux.callPackage;

inherit (nixos {}) nixos-rebuild;

inherit (ocaml-ng) # added 2016-09-14
ocamlPackages_3_10_0 ocamlPackages_3_11_2 ocamlPackages_3_12_1
ocamlPackages_4_00_1 ocamlPackages_4_01_0 ocamlPackages_4_02
Expand Down

1 comment on commit f1c978a

@matthewbauer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we refactor nixos-rebuild and others to make it a package? Call it something like nixos-utils. I think there is a strong desire to make these available in some way to non-NixOS users. Even commands like nixos-option can be useful when you're not on NixOS.

Please sign in to comment.