diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-30 13:36:57 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-30 13:44:50 +0200 |
commit | f463d2490322a7a7e41634bbf23fc9cbdbdb9fae (patch) | |
tree | 3a7c53aeccc5d075999b34264db969d519815fcd /nixos/modules/misc | |
parent | d61e1b24e6d280ab596abca0da2b33293eaaeef6 (diff) | |
download | nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar.gz nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar.bz2 nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar.lz nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar.xz nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.tar.zst nixlib-f463d2490322a7a7e41634bbf23fc9cbdbdb9fae.zip |
Add read-only options
These are options that can have only one definition, regardless of priority.
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/version.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 8a52df42dd80..dc8eb4e88329 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -29,7 +29,7 @@ with lib; }; system.nixosRelease = mkOption { - internal = true; + readOnly = true; type = types.str; default = readFile "${toString pkgs.path}/.version"; description = "NixOS release."; @@ -48,7 +48,7 @@ with lib; }; system.nixosCodeName = mkOption { - internal = true; + readOnly = true; type = types.str; description = "NixOS release code name."; }; |