about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-07-25 23:22:54 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-07-28 00:12:55 +0300
commit96190535e526bc1f7b8975d9f6f2f6493060203f (patch)
tree035be138fdceaef8294f7136a88b496ddf101050 /nixos/tests
parent28e11a0b6ba740aedcc8be27ff8ef334d187bd37 (diff)
downloadnixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar.gz
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar.bz2
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar.lz
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar.xz
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.tar.zst
nixlib-96190535e526bc1f7b8975d9f6f2f6493060203f.zip
Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1"
This reverts commit 095fe5b43def40279a243e663c662b02caac5318.

Pointless renames considered harmful. All they do is force people to
spend extra work updating their configs for no benefit, and hindering
the ability to switch between unstable and stable versions of NixOS.

Like, what was the value of having the "nixos." there? I mean, by
definition anything in a NixOS module has something to do with NixOS...
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/containers-imperative.nix2
-rw-r--r--nixos/tests/containers-ipv4.nix2
-rw-r--r--nixos/tests/radicale.nix4
3 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/containers-imperative.nix b/nixos/tests/containers-imperative.nix
index 42bff6a9a3f9..93b00b5b9772 100644
--- a/nixos/tests/containers-imperative.nix
+++ b/nixos/tests/containers-imperative.nix
@@ -18,7 +18,7 @@ import ./make-test.nix ({ pkgs, ...} : {
           inherit (config.nixpkgs.localSystem) system;
           modules = lib.singleton {
             containers.foo.config = {
-              system.nixos.stateVersion = "18.03";
+              system.stateVersion = "18.03";
             };
           };
         };
diff --git a/nixos/tests/containers-ipv4.nix b/nixos/tests/containers-ipv4.nix
index c4d954592ef0..4affe3d9d56d 100644
--- a/nixos/tests/containers-ipv4.nix
+++ b/nixos/tests/containers-ipv4.nix
@@ -21,7 +21,7 @@ import ./make-test.nix ({ pkgs, ...} : {
               services.httpd.adminAddr = "foo@example.org";
               networking.firewall.allowedTCPPorts = [ 80 ];
               networking.firewall.allowPing = true;
-              system.nixos.stateVersion = "18.03";
+              system.stateVersion = "18.03";
             };
         };
 
diff --git a/nixos/tests/radicale.nix b/nixos/tests/radicale.nix
index 0a9c2d394a7a..bf22fc9291af 100644
--- a/nixos/tests/radicale.nix
+++ b/nixos/tests/radicale.nix
@@ -43,7 +43,7 @@ in
             });
           })
         ];
-        system.nixos.stateVersion = "17.03";
+        system.stateVersion = "17.03";
       };
       radicale1_export = lib.recursiveUpdate radicale1 {
         services.radicale.extraArgs = [
@@ -54,7 +54,7 @@ in
         services.radicale.extraArgs = [ "--verify-storage" ];
       };
       radicale2 = lib.recursiveUpdate (common args) {
-        system.nixos.stateVersion = "17.09";
+        system.stateVersion = "17.09";
       };
     };