lol

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

+6 -9
+6 -9
nixos/tests/misc.nix
··· 1 1 # Miscellaneous small tests that don't warrant their own VM run. 2 2 3 - import ./make-test-python.nix ({ pkgs, ...} : let 3 + import ./make-test-python.nix ({ lib, pkgs, ...} : let 4 4 foo = pkgs.writeText "foo" "Hello World"; 5 5 in { 6 6 name = "misc"; 7 - meta = with pkgs.lib.maintainers; { 8 - maintainers = [ eelco ]; 9 - }; 7 + meta.maintainers = with lib.maintainers; [ eelco ]; 10 8 11 9 nodes.machine = 12 10 { lib, ... }: 13 - with lib; 14 - { swapDevices = mkOverride 0 11 + { swapDevices = lib.mkOverride 0 15 12 [ { device = "/root/swapfile"; size = 128; } ]; 16 - environment.variables.EDITOR = mkOverride 0 "emacs"; 17 - documentation.nixos.enable = mkOverride 0 true; 13 + environment.variables.EDITOR = lib.mkOverride 0 "emacs"; 14 + documentation.nixos.enable = lib.mkOverride 0 true; 18 15 systemd.tmpfiles.rules = [ "d /tmp 1777 root root 10d" ]; 19 16 virtualisation.fileSystems = { "/tmp2" = 20 17 { fsType = "tmpfs"; ··· 32 29 options = [ "bind" "rw" "noauto" ]; 33 30 }; 34 31 }; 35 - systemd.automounts = singleton 32 + systemd.automounts = lib.singleton 36 33 { wantedBy = [ "multi-user.target" ]; 37 34 where = "/tmp2"; 38 35 };