1
1
Fork 0

Add guesshtbook config

This commit is contained in:
Jaculabilis 2023-06-09 20:26:19 +00:00
parent b807fa6703
commit 68b58053d4
1 changed files with 26 additions and 0 deletions

View File

@ -174,6 +174,32 @@
}; };
users.groups.tvb = {}; 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 # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave