summary refs log tree commit diff
path: root/nixos/modules/rename.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-07-25 23:36:45 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-07-28 00:12:55 +0300
commitcad1c18743699fa7458f1e49f6cfab0b86b024e9 (patch)
tree719415aafe19bab30ed55be3ba9a8f05f7154520 /nixos/modules/rename.nix
parent96190535e526bc1f7b8975d9f6f2f6493060203f (diff)
downloadnixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar.gz
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar.bz2
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar.lz
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar.xz
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.tar.zst
nixlib-cad1c18743699fa7458f1e49f6cfab0b86b024e9.zip
nixos/rename: Add temporary aliases for the system.nixos.* rename revert
See the previous commit for motivation.
Diffstat (limited to 'nixos/modules/rename.nix')
-rw-r--r--nixos/modules/rename.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix
index 87ff4359edaf..40f66ccb26b2 100644
--- a/nixos/modules/rename.nix
+++ b/nixos/modules/rename.nix
@@ -4,6 +4,11 @@ with lib;
 
 {
   imports = [
+    # !!! These were renamed the other way, but got reverted later.
+    # !!! Drop these before 18.09 is released.
+    (mkRenamedOptionModule [ "system" "nixos" "stateVersion" ] [ "system" "stateVersion" ])
+    (mkRenamedOptionModule [ "system" "nixos" "defaultChannel" ] [ "system" "defaultChannel" ])
+
     (mkRenamedOptionModule [ "dysnomia" ] [ "services" "dysnomia" ])
     (mkRenamedOptionModule [ "environment" "x11Packages" ] [ "environment" "systemPackages" ])
     (mkRenamedOptionModule [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ])