summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-30 13:36:57 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-30 13:44:50 +0200
commitf463d2490322a7a7e41634bbf23fc9cbdbdb9fae (patch)
tree3a7c53aeccc5d075999b34264db969d519815fcd /nixos/modules/misc
parentd61e1b24e6d280ab596abca0da2b33293eaaeef6 (diff)
downloadnixlib-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.nix4
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.";
     };