add nginx and ssh config

This commit is contained in:
XenGi 2026-02-13 18:18:30 +01:00
parent b177613b1e
commit b918d81d05
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
2 changed files with 18 additions and 0 deletions

16
hosts/www/ssh.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
users.users.deploy = {
description = "deploys static websites from forgejo";
shell = pkgs.nologin;
packages = [
pkgs.rsync
];
openssh.authorizedKeys.keys = [
"command='rsync --server --daemon . /srv/http/www/',restrict ssh-ed25519 AAAAB3NzaC1yc2EAAAADAQABAAABAQCy... git.berlin.ccc.de/cccb/www"
];
#extraGroups = ["nginx"];
};
}