group the release info

this makes the codename globally accessible in the repo. The release is
not only for NixOS anymore.
This commit is contained in:
zimbatm
2018-11-15 21:56:17 +01:00
parent f482ff9deb
commit 2a838cb6d7
2 changed files with 8 additions and 3 deletions
+1 -3
View File
@@ -43,6 +43,7 @@ in
nixos.codeName = mkOption {
readOnly = true;
type = types.str;
default = lib.trivial.codeName;
description = "The NixOS release code name (e.g. <literal>Emu</literal>).";
};
@@ -79,9 +80,6 @@ in
version = mkDefault (cfg.release + cfg.versionSuffix);
revision = mkIf (pathIsDirectory gitRepo) (mkDefault gitCommitId);
versionSuffix = mkIf (pathIsDirectory gitRepo) (mkDefault (".git." + gitCommitId));
# Note: the first letter is bumped on every release. It's an animal.
codeName = "Koi";
};
# Generate /etc/os-release. See