Add guesshtbook config
This commit is contained in:
parent
b807fa6703
commit
68b58053d4
|
@ -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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Reference in New Issue