feat: add initial config
This commit is contained in:
commit
fb98563bb6
26 changed files with 576 additions and 0 deletions
22
config/openssh.nix
Normal file
22
config/openssh.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
let
|
||||
secrets = import ../intermediate/secrets.nix;
|
||||
users = builtins.attrNames secrets.source.openssh.users;
|
||||
in
|
||||
rec {
|
||||
ssh_users = users;
|
||||
|
||||
extraConfig = {
|
||||
users = {
|
||||
"autossh-incoming" = ''
|
||||
PasswordAuthentication no
|
||||
PermitTTY no
|
||||
X11Forwarding no
|
||||
AllowAgentForwarding no
|
||||
PermitTunnel no
|
||||
AllowTcpForwarding remote
|
||||
PermitListen localhost:*
|
||||
PermitListen 127.0.0.1:*
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue