diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-04-06 01:19:06 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-05-12 19:27:09 +0000 |
commit | 095fe5b43def40279a243e663c662b02caac5318 (patch) | |
tree | 943f7d7550221ba6f3b7cd855e00b265bbbcf316 /nixos/modules/misc | |
parent | b0d29e7e179f20c92f18e2eff13b871d015adc5a (diff) | |
download | nixlib-095fe5b43def40279a243e663c662b02caac5318.tar nixlib-095fe5b43def40279a243e663c662b02caac5318.tar.gz nixlib-095fe5b43def40279a243e663c662b02caac5318.tar.bz2 nixlib-095fe5b43def40279a243e663c662b02caac5318.tar.lz nixlib-095fe5b43def40279a243e663c662b02caac5318.tar.xz nixlib-095fe5b43def40279a243e663c662b02caac5318.tar.zst nixlib-095fe5b43def40279a243e663c662b02caac5318.zip |
nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/version.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 74c86443ab90..c45d5b077481 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -12,29 +12,29 @@ in { - options.system = { + options.system.nixos = { - nixos.version = mkOption { + version = mkOption { internal = true; type = types.str; description = "The full NixOS version (e.g. <literal>16.03.1160.f2d4ee1</literal>)."; }; - nixos.release = mkOption { + release = mkOption { readOnly = true; type = types.str; default = trivial.release; description = "The NixOS release (e.g. <literal>16.03</literal>)."; }; - nixos.versionSuffix = mkOption { + versionSuffix = mkOption { internal = true; type = types.str; default = trivial.versionSuffix; description = "The NixOS version suffix (e.g. <literal>1160.f2d4ee1</literal>)."; }; - nixos.revision = mkOption { + revision = mkOption { internal = true; type = types.str; default = if pathIsDirectory gitRepo then commitIdFromGitRepo gitRepo @@ -43,7 +43,7 @@ in description = "The Git revision from which this NixOS configuration was built."; }; - nixos.codeName = mkOption { + codeName = mkOption { readOnly = true; type = types.str; description = "The NixOS release code name (e.g. <literal>Emu</literal>)."; |