tv configs test: systemPackages += su-test

This commit is contained in:
tv 2015-08-28 22:14:34 +02:00
parent 642c761bd0
commit 8e51374818

View file

@ -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"];