summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-08-28 22:14:34 +0200
committertv <tv@shackspace.de>2015-08-28 22:14:34 +0200
commit8e5137481852df6fb5488296a7081b5180e6954f (patch)
tree25a13ff8522de83e8787027165bfe6ce89a31b71 /tv
parent642c761bd015f5766a75cf5688b50d42efdb96c3 (diff)
tv configs test: systemPackages += su-test
Diffstat (limited to 'tv')
-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 f96b9e98..fa556ec7 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"];