68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
# 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, ... }:
|
||
|
||
let
|
||
secrets = import <secrets>;
|
||
yoricc = import ../packages/yori-cc.nix;
|
||
in
|
||
{
|
||
imports = [
|
||
../physical/kassala.nix
|
||
../roles/common.nix
|
||
../modules/muflax-blog.nix
|
||
];
|
||
|
||
networking.hostName = secrets.hostnames.pennyworth;
|
||
|
||
services.nixosManual.enable = false;
|
||
|
||
environment.noXlibs = true;
|
||
|
||
networking.enableIPv6 = lib.mkOverride 30 true;
|
||
|
||
system.stateVersion = "16.03";
|
||
yorick = { cpu = null; };
|
||
|
||
services.nginx.enable = true;
|
||
services.yorick = {
|
||
website = { enable = true; vhost = "yorickvanpelt.nl"; };
|
||
mail = {
|
||
enable = true;
|
||
mainUser = "yorick";
|
||
users = {
|
||
yorick = with secrets; {
|
||
password = yorick_mailPassword;
|
||
domains = email_domains;
|
||
};
|
||
};
|
||
};
|
||
xmpp = {
|
||
enable = true;
|
||
vhost = "yori.cc";
|
||
admins = [ "yorick@yori.cc" ];
|
||
};
|
||
};
|
||
services.nginx.virtualHosts."yori.cc" = {
|
||
enableACME = true;
|
||
forceSSL = true;
|
||
globalRedirect = "yorickvanpelt.nl";
|
||
};
|
||
|
||
|
||
|
||
|
||
services.muflax-blog = {
|
||
enable = true;
|
||
web-server = {
|
||
port = 9001;
|
||
};
|
||
hidden-service = {
|
||
hostname = "muflax65ngodyewp.onion";
|
||
private_key = "/run/keys/torkeys/http.muflax.key";
|
||
};
|
||
};
|
||
}
|