From 68b58053d4e6eb8199ced538a58a0cd00ae2b943 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Fri, 9 Jun 2023 20:26:19 +0000 Subject: [PATCH] Add guesshtbook config --- machine/empyrean/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/machine/empyrean/default.nix b/machine/empyrean/default.nix index bd960ca..c5d85ad 100644 --- a/machine/empyrean/default.nix +++ b/machine/empyrean/default.nix @@ -174,6 +174,32 @@ }; users.groups.tvb = {}; + /* + users.users.guestbook = let + sign-guestbook = pkgs.writeShellScriptBin "sign-guestbook" '' + echo "Hello world!" + '' + # Hack the shell path in since writeShellScriptBin doesn't take passthru + // { shellPath = "/bin/sign-guestbook"; }; + in { + group = "guestbook"; + password = ""; + description = "Guestbook login"; + shell = sign-guestbook; + isNormalUser = true; + createHome = false; + home = "/var/empty"; + useDefaultShell = false; + }; + users.groups.guestbook = {}; + services.openssh.extraConfig = '' + Match user guestbook + PasswordAuthentication yes + PermitEmptyPasswords yes + Match all + PasswordAuthentication no + '';*/ + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave