move nixos-rebuild into pkgs
This commit is contained in:
parent
7996fb0d4e
commit
c32f5b22f1
4 changed files with 17 additions and 11 deletions
|
@ -28,17 +28,7 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
nixos-rebuild =
|
||||
let fallback = import ./nix-fallback-paths.nix; in
|
||||
makeProg {
|
||||
name = "nixos-rebuild";
|
||||
src = ./nixos-rebuild.sh;
|
||||
inherit (pkgs) runtimeShell;
|
||||
nix = config.nix.package.out;
|
||||
nix_x86_64_linux = fallback.x86_64-linux;
|
||||
nix_i686_linux = fallback.i686-linux;
|
||||
path = makeBinPath [ pkgs.jq ];
|
||||
};
|
||||
nixos-rebuild = pkgs.nixos-rebuild.override { nix = config.nix.package.out; };
|
||||
|
||||
nixos-generate-config = makeProg {
|
||||
name = "nixos-generate-config";
|
||||
|
|
14
pkgs/os-specific/linux/nixos-rebuild/default.nix
Normal file
14
pkgs/os-specific/linux/nixos-rebuild/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ substituteAll, runtimeShell, jq, nix, lib }:
|
||||
|
||||
let
|
||||
fallback = import ./../../../../nixos/modules/installer/tools/nix-fallback-paths.nix;
|
||||
in substituteAll {
|
||||
name = "nixos-rebuild";
|
||||
src = ./nixos-rebuild.sh;
|
||||
dir = "bin";
|
||||
isExecutable = true;
|
||||
inherit runtimeShell nix;
|
||||
nix_x86_64_linux = fallback.x86_64-linux;
|
||||
nix_i686_linux = fallback.i686-linux;
|
||||
path = lib.makeBinPath [ jq ];
|
||||
}
|
|
@ -28913,6 +28913,8 @@ in
|
|||
|
||||
nixos-generators = callPackage ../tools/nix/nixos-generators { };
|
||||
|
||||
nixos-rebuild = callPackage ../os-specific/linux/nixos-rebuild { };
|
||||
|
||||
norwester-font = callPackage ../data/fonts/norwester {};
|
||||
|
||||
nut = callPackage ../applications/misc/nut { };
|
||||
|
|
Loading…
Reference in a new issue