about summary refs log tree commit diff
path: root/nixos/modules/misc/label.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2017-04-01 00:00:00 +0000
committerJan Malakhovski <oxij@oxij.org>2018-02-18 12:56:30 +0000
commit2e6b796761672e0e3ed685487007bb0d99126d91 (patch)
tree530c7866ba30fa6480e24da2d603bac7b292a0e1 /nixos/modules/misc/label.nix
parent09512be289819507ca53d7f7be5e4b712b78283d (diff)
nixos: rename config.system.nixos* -> config.system.nixos.*
Diffstat (limited to 'nixos/modules/misc/label.nix')
-rw-r--r--nixos/modules/misc/label.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/misc/label.nix b/nixos/modules/misc/label.nix
index 30d8fc9952b73..5faac8936f8f2 100644
--- a/nixos/modules/misc/label.nix
+++ b/nixos/modules/misc/label.nix
@@ -3,14 +3,14 @@
 with lib;
 
 let
-  cfg = config.system;
+  cfg = config.system.nixos;
 in
 
 {
 
   options.system = {
 
-    nixosLabel = mkOption {
+    nixos.label = mkOption {
       type = types.str;
       description = ''
         NixOS version name to be used in the names of generated
@@ -26,7 +26,7 @@ in
   config = {
     # This is set here rather than up there so that changing it would
     # not rebuild the manual
-    system.nixosLabel = mkDefault cfg.nixosVersion;
+    system.nixos.label = mkDefault cfg.version;
   };
 
 }