mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixosTests.sudo-rs: fix syntax
This commit is contained in:
parent
922926cfbc
commit
61536e7a1f
@ -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"')
|
||||
'';;
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user