summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/channel.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-04-12 18:15:42 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-04-16 20:39:51 +0300
commitbd77849b2f5b15f17a40f1142e8a90a02c6c8ddd (patch)
tree36a04a780a86179c0ca2f26be547659773b152bc /nixos/modules/installer/cd-dvd/channel.nix
parentd17d4b70c95c68280fa644ba4e72d9fde6db48a2 (diff)
downloadnixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.gz
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.bz2
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.lz
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.xz
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.zst
nixpkgs-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.zip
nixos/installer/channel: Add some files that the channel also has
Nothing probably uses this, but let's be pedantic and have the
pre-included channel on the install media be as close as possible to
what 'nix-channel --update' will give them.

The only remaining difference is that the channel adds programs.sqlite,
which is fundamentally unfixable.
Diffstat (limited to 'nixos/modules/installer/cd-dvd/channel.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/channel.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/channel.nix b/nixos/modules/installer/cd-dvd/channel.nix
index 4a198316795..01cfe8a02e1 100644
--- a/nixos/modules/installer/cd-dvd/channel.nix
+++ b/nixos/modules/installer/cd-dvd/channel.nix
@@ -21,7 +21,9 @@ let
       if [ ! -e $out/nixos/nixpkgs ]; then
         ln -s . $out/nixos/nixpkgs
       fi
+      echo -n ${config.system.nixos.revision} > $out/nixos/.git-revision
       echo -n ${config.system.nixos.versionSuffix} > $out/nixos/.version-suffix
+      echo ${config.system.nixos.versionSuffix} | sed -e s/pre// > $out/nixos/svn-revision
     '';
 
 in