2016-01-28 02:59:31 +01: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, ... }:
|
|
|
|
|
let secrets = import <secrets>;
|
2016-04-30 14:03:45 +02:00
|
|
|
|
acmeWebRoot = "/etc/sslcerts/acmeroot";
|
|
|
|
|
acmeKeyDir = "${config.security.acme.directory}/git.yori.cc";
|
2016-01-28 02:59:31 +01:00
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
2017-02-02 17:15:17 +01:00
|
|
|
|
../psysical/frumar.nix
|
2016-01-28 02:59:31 +01:00
|
|
|
|
../roles/common.nix
|
2016-12-25 00:14:47 +01:00
|
|
|
|
../modules/nginx.nix
|
2016-01-28 02:59:31 +01:00
|
|
|
|
../modules/gogs.nix # todo: better separation here
|
2016-04-30 14:03:45 +02:00
|
|
|
|
../modules/tor-hidden-service.nix
|
2016-01-28 02:59:31 +01:00
|
|
|
|
../roles/quassel.nix
|
|
|
|
|
../roles/pub.nix
|
2017-01-26 14:45:11 +01:00
|
|
|
|
../roles/collectd.nix
|
2016-01-28 02:59:31 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networking.hostName = secrets.hostnames.frumar;
|
|
|
|
|
|
|
|
|
|
# The NixOS release to be compatible with for stateful data such as databases.
|
|
|
|
|
system.stateVersion = "15.09";
|
|
|
|
|
|
|
|
|
|
gogs.domain = "git.yori.cc";
|
2016-04-30 14:03:45 +02:00
|
|
|
|
nginxssl.enable = true;
|
|
|
|
|
|
|
|
|
|
# hidden SSH service
|
|
|
|
|
|
|
|
|
|
services.tor.hiddenServices = [
|
|
|
|
|
{ name = "ssh";
|
|
|
|
|
port = 22;
|
|
|
|
|
hostname = secrets.tor_hostnames."ssh.frumar";
|
|
|
|
|
private_key = "/run/keys/torkeys/ssh.frumar.key"; }
|
|
|
|
|
];
|
2016-01-28 02:59:31 +01:00
|
|
|
|
}
|