diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-25 00:20:53 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-25 00:25:54 +0200 |
commit | 1cd727180eeb60e1c4f6ead96be614431624830f (patch) | |
tree | a22dbedc544a48bb7a0ab4ad023d5f76dab6e4e6 /nixos/release.nix | |
parent | 0a967b926871af2eb8a5098d85a519a4922c56e7 (diff) |
Add all default NixOS packages to the channel
The job ‘dummy’ depends on the default contents of ‘environment.systemPackages’, thus ensuring that those packages all end up in the channel.
Diffstat (limited to 'nixos/release.nix')
-rw-r--r-- | nixos/release.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix index 0a12aa765be9b..7337ad7e3f45c 100644 --- a/nixos/release.nix +++ b/nixos/release.nix @@ -186,6 +186,16 @@ in rec { ); + # Ensure that all packages used by the minimal NixOS config end up in the channel. + dummy = forAllSystems (system: pkgs.runCommand "dummy" + { propagatedBuildInputs = (import lib/eval-config.nix { + inherit system; + modules = lib.singleton ({ config, pkgs, ... }: { }); + }).config.environment.systemPackages; + } + "mkdir $out; fixupPhase"); + + # Provide a tarball that can be unpacked into an SD card, and easily # boot that system from uboot (like for the sheevaplug). # The pc variant helps preparing the expression for the system tarball |