From bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 12 Apr 2018 18:15:42 +0300 Subject: [PATCH] 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. --- nixos/modules/installer/cd-dvd/channel.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/installer/cd-dvd/channel.nix b/nixos/modules/installer/cd-dvd/channel.nix index 4a1983167957..01cfe8a02e10 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