Infini-DL360/research: init
This commit is contained in:
parent
1613e38137
commit
d7a0d49acc
2 changed files with 33 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
./privoxy.nix
|
./privoxy.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
|
./research.nix
|
||||||
./searx.nix
|
./searx.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./thelounge.nix
|
./thelounge.nix
|
||||||
|
|
32
hosts/Infini-DL360/research.nix
Normal file
32
hosts/Infini-DL360/research.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.cs252 = {
|
||||||
|
description = "Guest account for CS 252 researchers";
|
||||||
|
group = "users";
|
||||||
|
isNormalUser = true;
|
||||||
|
shell = pkgs.bash;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.openssh.extraConfig = ''
|
||||||
|
Match user cs252
|
||||||
|
AuthorizedKeysFile /etc/ssh/authorized_keys.d/infinidoge /etc/ssh/authorized_keys.d/%u
|
||||||
|
DisableForwarding yes
|
||||||
|
PasswordAuthentication no
|
||||||
|
'';
|
||||||
|
|
||||||
|
security.pam.loginLimits = [
|
||||||
|
{
|
||||||
|
domain = "cs252";
|
||||||
|
item = "memlock";
|
||||||
|
type = "-";
|
||||||
|
value = "256000000";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
domain = "cs252";
|
||||||
|
item = "as";
|
||||||
|
type = "-";
|
||||||
|
value = "256000000";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue