tv configs test: init
This commit is contained in:
parent
8827469a35
commit
62865ae6ae
|
@ -33,6 +33,7 @@ in
|
||||||
../2configs/mail-client.nix
|
../2configs/mail-client.nix
|
||||||
../2configs/xserver.nix
|
../2configs/xserver.nix
|
||||||
../2configs/synaptics.nix # TODO w110er if xserver is enabled
|
../2configs/synaptics.nix # TODO w110er if xserver is enabled
|
||||||
|
../2configs/test.nix
|
||||||
../2configs/urlwatch.nix
|
../2configs/urlwatch.nix
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
25
tv/2configs/test.nix
Normal file
25
tv/2configs/test.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with import ../4lib { inherit lib pkgs; };
|
||||||
|
|
||||||
|
let
|
||||||
|
tvpkgs = import ../5pkgs { inherit lib pkgs; };
|
||||||
|
|
||||||
|
out = {
|
||||||
|
security.sudo.extraConfig = ''
|
||||||
|
tv ALL=(test) NOPASSWD: ALL
|
||||||
|
'';
|
||||||
|
users.extraUsers.test = {
|
||||||
|
shell = "${test-shell}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
test-shell = tvpkgs.execve "test-shell" rec {
|
||||||
|
filename = "${pkgs.bash}/bin/bash";
|
||||||
|
argv = ["sh" "--noprofile" "-l"];
|
||||||
|
envp.ENV = pkgs.writeText "test-env" ''
|
||||||
|
${shell.cat "Hello, `$(j0w\nd0g!)`!\\o/\n"} >&2
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
in out
|
Loading…
Reference in New Issue
Block a user