nixos/tests/misc.nix: get rid of `with lib`

Changed files
+6 -9
nixos
tests
+6 -9
nixos/tests/misc.nix
···
# Miscellaneous small tests that don't warrant their own VM run.
-
import ./make-test-python.nix ({ pkgs, ...} : let
+
import ./make-test-python.nix ({ lib, pkgs, ...} : let
foo = pkgs.writeText "foo" "Hello World";
in {
name = "misc";
-
meta = with pkgs.lib.maintainers; {
-
maintainers = [ eelco ];
-
};
+
meta.maintainers = with lib.maintainers; [ eelco ];
nodes.machine =
{ lib, ... }:
-
with lib;
-
{ swapDevices = mkOverride 0
+
{ swapDevices = lib.mkOverride 0
[ { device = "/root/swapfile"; size = 128; } ];
-
environment.variables.EDITOR = mkOverride 0 "emacs";
-
documentation.nixos.enable = mkOverride 0 true;
+
environment.variables.EDITOR = lib.mkOverride 0 "emacs";
+
documentation.nixos.enable = lib.mkOverride 0 true;
systemd.tmpfiles.rules = [ "d /tmp 1777 root root 10d" ];
virtualisation.fileSystems = { "/tmp2" =
{ fsType = "tmpfs";
···
options = [ "bind" "rw" "noauto" ];
};
};
-
systemd.automounts = singleton
+
systemd.automounts = lib.singleton
{ wantedBy = [ "multi-user.target" ];
where = "/tmp2";
};