dotfiles/logical/pennyworth.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2016-04-14 14:02:16 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{
imports = [
2018-03-11 19:21:08 +01:00
<yori-nix/physical/kassala.nix>
<yori-nix/roles/server.nix>
../modules/muflax-blog.nix
2016-04-14 14:02:16 +02:00
];
networking.enableIPv6 = lib.mkOverride 30 true;
system.stateVersion = "16.03";
2017-02-02 16:58:48 +01:00
2018-03-11 18:28:25 +01:00
services.nginx.enable = true;
services.yorick = {
website = { enable = true; vhost = "yorickvanpelt.nl"; };
mail = {
enable = true;
mainUser = "yorick";
2018-03-11 19:21:08 +01:00
users.yorick = {
password = (import <yori-nix/secrets.nix>).yorick_mailPassword;
domains = ["yori.cc" "yorickvanpelt.nl"];
2018-03-11 18:28:25 +01:00
};
};
xmpp = {
enable = true;
vhost = "yori.cc";
admins = [ "yorick@yori.cc" ];
};
};
services.nginx.virtualHosts."yori.cc" = {
2017-01-30 17:41:54 +01:00
enableACME = true;
forceSSL = true;
2018-03-11 18:28:25 +01:00
globalRedirect = "yorickvanpelt.nl";
2017-01-30 17:41:54 +01:00
};
2016-04-22 19:12:59 +02:00
services.muflax-blog = {
enable = true;
web-server = {
port = 9001;
};
hidden-service = {
hostname = "muflax65ngodyewp.onion";
2018-03-11 23:17:55 +01:00
private_key = "/root/keys/http.muflax.key";
};
};
2018-03-11 23:17:55 +01:00
deployment.keyys = [ <yori-nix/keys/http.muflax.key> ];
2016-04-14 14:02:16 +02:00
}