dotfiles/roles/pub.nix

23 lines
527 B
Nix
Raw Normal View History

2016-01-28 02:59:31 +01:00
{ config, pkgs, lib, ... }:
2016-07-29 19:04:28 +02:00
let secrets = import <secrets>;
in
2016-01-28 02:59:31 +01:00
{
2016-12-25 00:14:47 +01:00
#imports = [../modules/nginx.nix];
2016-01-28 02:59:31 +01:00
config = {
users.extraUsers.public = {
home = "/home/public";
useDefaultShell = true;
openssh.authorizedKeys.keys = with (import ../sshkeys.nix); [public];
createHome = true;
};
2016-12-25 00:14:47 +01:00
services.nginx.virtualHosts."pub.yori.cc" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "/home/public/public";
index = "index.html";
2016-07-29 19:04:28 +02:00
};
2016-12-25 00:14:47 +01:00
};
2016-01-28 02:59:31 +01:00
};
}