mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Add an entire NixOS build to the channel
This causes some cruft to be uploaded (such as unit files) but it
ensures that every package used by the base system ends up in the
channel, not just environment.systemPackages.
(cherry picked from commit 4dfca8e14a
)
This commit is contained in:
parent
c7a1944ad9
commit
93ff0d5496
@ -188,12 +188,15 @@ in rec {
|
|||||||
|
|
||||||
# Ensure that all packages used by the minimal NixOS config end up in the channel.
|
# Ensure that all packages used by the minimal NixOS config end up in the channel.
|
||||||
dummy = forAllSystems (system: pkgs.runCommand "dummy"
|
dummy = forAllSystems (system: pkgs.runCommand "dummy"
|
||||||
{ propagatedBuildInputs = (import lib/eval-config.nix {
|
{ toplevel = (import lib/eval-config.nix {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = lib.singleton ({ config, pkgs, ... }: { });
|
modules = lib.singleton ({ config, pkgs, ... }:
|
||||||
}).config.environment.systemPackages;
|
{ fileSystems."/".device = lib.mkDefault "/dev/sda1";
|
||||||
|
boot.loader.grub.device = lib.mkDefault "/dev/sda";
|
||||||
|
});
|
||||||
|
}).config.system.build.toplevel;
|
||||||
}
|
}
|
||||||
"mkdir $out; fixupPhase");
|
"mkdir $out; ln -s $toplevel $out/dummy");
|
||||||
|
|
||||||
|
|
||||||
# Provide a tarball that can be unpacked into an SD card, and easily
|
# Provide a tarball that can be unpacked into an SD card, and easily
|
||||||
|
Loading…
Reference in New Issue
Block a user