summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tv/2configs/test.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/tv/2configs/test.nix b/tv/2configs/test.nix
index f96b9e9..fa556ec 100644
--- a/tv/2configs/test.nix
+++ b/tv/2configs/test.nix
@@ -6,6 +6,9 @@ let
tvpkgs = import ../5pkgs { inherit lib pkgs; };
out = {
+ environment.systemPackages = [
+ su-test
+ ];
security.sudo.extraConfig = ''
tv ALL=(test) NOPASSWD: ALL
'';
@@ -14,6 +17,11 @@ let
};
};
+ su-test = tvpkgs.execveBin "su-test" rec {
+ filename = "/var/setuid-wrappers/sudo";
+ argv = ["sudo" "-u" "test" "-i"];
+ };
+
test-shell = tvpkgs.execve "test-shell" rec {
filename = "${pkgs.bash}/bin/bash";
argv = ["sh" "--noprofile" "-l"];