Manual: When building from the channel, link to the exact Git revision

This commit is contained in:
Eelco Dolstra
2013-10-24 02:03:10 +02:00
parent c4149c7b56
commit d49f141a79
6 changed files with 11 additions and 17 deletions
+2 -2
View File
@@ -29,11 +29,11 @@ with pkgs.lib;
config = {
system.nixosVersion =
mkDefault (builtins.readFile "${toString pkgs.path}/.version" + config.system.nixosVersionSuffix);
mkDefault (readFile "${toString pkgs.path}/.version" + config.system.nixosVersionSuffix);
system.nixosVersionSuffix =
let suffixFile = "${toString pkgs.path}/.version-suffix"; in
mkDefault (if builtins.pathExists suffixFile then builtins.readFile suffixFile else "pre-git");
mkDefault (if pathExists suffixFile then readFile suffixFile else "pre-git");
# Note: code names must only increase in alphabetical order.
system.nixosCodeName = "Aardvark";