dotfiles/roles/pub.nix

19 lines
423 B
Nix

{ config, pkgs, lib, ... }:
{
imports = [../modules/le_nginx.nix];
config = {
users.extraUsers.public = {
home = "/home/public";
useDefaultShell = true;
openssh.authorizedKeys.keys = with (import ../sshkeys.nix); [public];
createHome = true;
};
le_nginx.servers."pub.yori.cc" = ''
location / {
root /home/public/public;
index index.html;
}
'';
};
}