diff options
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/charybdis.nix | 1 | ||||
-rw-r--r-- | tv/2configs/mail-client.nix | 4 | ||||
-rw-r--r-- | tv/2configs/test.nix | 25 |
3 files changed, 28 insertions, 2 deletions
diff --git a/tv/2configs/charybdis.nix b/tv/2configs/charybdis.nix index bf45bf2..a295221 100644 --- a/tv/2configs/charybdis.nix +++ b/tv/2configs/charybdis.nix @@ -590,6 +590,7 @@ let throttle_count = 4; max_ratelimit_tokens = 30; away_interval = 30; + disable_auth = yes; }; modules { diff --git a/tv/2configs/mail-client.nix b/tv/2configs/mail-client.nix index a632cf7..1daacdb 100644 --- a/tv/2configs/mail-client.nix +++ b/tv/2configs/mail-client.nix @@ -1,6 +1,6 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: -with import ../5pkgs { inherit pkgs; }; +with import ../5pkgs { inherit lib pkgs; }; { environment.systemPackages = [ diff --git a/tv/2configs/test.nix b/tv/2configs/test.nix new file mode 100644 index 0000000..f96b9e9 --- /dev/null +++ b/tv/2configs/test.nix @@ -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 |