Add read-only options

These are options that can have only one definition, regardless of
priority.
This commit is contained in:
Eelco Dolstra
2015-07-30 13:44:50 +02:00
parent d61e1b24e6
commit f463d24903
4 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -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.";
};