tv configs test: systemPackages += su-test
This commit is contained in:
parent
642c761bd0
commit
8e51374818
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue