summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-04-30 11:26:20 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-05-12 22:29:30 -0300
commitde2927e336fd653cb805afe8af8ed3006ff2dedf (patch)
tree8799e9de41b9909a9412df071fe70e2a28f5751a
parent07b75a58e1664dc0913c2a1a5d0a6635987fe9ce (diff)
downloadnixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar.gz
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar.bz2
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar.lz
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar.xz
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.tar.zst
nixpkgs-de2927e336fd653cb805afe8af8ed3006ff2dedf.zip
nixos/tests/tor.nix: get rid of `with lib`
-rw-r--r--nixos/tests/tor.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/tests/tor.nix b/nixos/tests/tor.nix
index 71ec9df4641..b55fbf91232 100644
--- a/nixos/tests/tor.nix
+++ b/nixos/tests/tor.nix
@@ -1,15 +1,13 @@
-import ./make-test-python.nix ({ lib, ... }: with lib;
-
-{
+import ./make-test-python.nix ({ lib, ... }: {
   name = "tor";
-  meta.maintainers = with maintainers; [ joachifm ];
+  meta.maintainers = with lib.maintainers; [ joachifm ];
 
   nodes.client = { pkgs, ... }: {
     boot.kernelParams = [ "audit=0" "apparmor=0" "quiet" ];
     networking.firewall.enable = false;
     networking.useDHCP = false;
 
-    environment.systemPackages = with pkgs; [ netcat ];
+    environment.systemPackages = [ pkgs.netcat ];
     services.tor.enable = true;
     services.tor.client.enable = true;
     services.tor.settings.ControlPort = 9051;