Skip to content

Commit

Permalink
Revert "Merge pull request NixOS#256294 from mkg20001/mkg/sudo-rs"
Browse files Browse the repository at this point in the history
This reverts commit 63ae6fa, reversing
changes made to 922926c.

This is a self-merge hotfix for the sudo-rs tests by mkg2001.
It is actually part of the PR 253876 change and the complete
revert rationale can be found there.
  • Loading branch information
RaitoBezarius committed Sep 21, 2023
1 parent 3fc41eb commit ea609b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nixos/tests/sudo-rs.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Some tests to ensure sudo is working properly.
{ pkgs, ... }:
{ pkgs, sudo-rs, ... }:
let
inherit (pkgs.lib) mkIf optionalString;
password = "helloworld";
Expand All @@ -24,7 +24,7 @@ in

security.sudo = {
enable = true;
package = pkgs.sudo-rs;
package = sudo-rs;
wheelNeedsPassword = false;

extraRules = [
Expand Down Expand Up @@ -55,7 +55,7 @@ in
};

security.sudo = {
package = pkgs.sudo-rs;
package = sudo-rs;
enable = true;
wheelNeedsPassword = false;
execWheelOnly = true;
Expand Down Expand Up @@ -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"')
'';
'';;
})

0 comments on commit ea609b0

Please sign in to comment.