about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2023-09-20 13:58:08 +0200
committerMaciej Krüger <mkg20001@gmail.com>2023-09-20 13:58:08 +0200
commit61536e7a1ff197ff11141dee6273eec76b2c1d85 (patch)
tree9b071d240360112c53eed322cda0073a26b6a790 /nixos/tests
parent922926cfbc08f3e4065b51a41ebf613e59888015 (diff)
nixosTests.sudo-rs: fix syntax
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/sudo-rs.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/sudo-rs.nix b/nixos/tests/sudo-rs.nix
index 334a2d0fa3ea4..150c0d5b4f1d4 100644
--- a/nixos/tests/sudo-rs.nix
+++ b/nixos/tests/sudo-rs.nix
@@ -1,5 +1,5 @@
 # Some tests to ensure sudo is working properly.
-{ pkgs, sudo-rs, ... }:
+{ pkgs, ... }:
 let
   inherit (pkgs.lib) mkIf optionalString;
   password = "helloworld";
@@ -24,7 +24,7 @@ in
 
         security.sudo = {
           enable = true;
-          package = sudo-rs;
+          package = pkgs.sudo-rs;
           wheelNeedsPassword = false;
 
           extraRules = [
@@ -55,7 +55,7 @@ in
       };
 
       security.sudo = {
-        package = sudo-rs;
+        package = pkgs.sudo-rs;
         enable = true;
         wheelNeedsPassword = false;
         execWheelOnly = true;
@@ -93,5 +93,5 @@ in
 
         with subtest("non-wheel users should be unable to run sudo thanks to execWheelOnly"):
             strict.fail('faketty -- su - noadmin -c "sudo --help"')
-      '';;
+      '';
   })