2019-12-20 05:54:26 +01:00
|
|
|
{ lib, config, pkgs, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
imports = [
|
|
|
|
|
|
|
|
<system/server>
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
./bepasty.nix
|
|
|
|
./castget.nix
|
|
|
|
./gogs.nix
|
|
|
|
./grafana.nix
|
|
|
|
./graylog.nix
|
|
|
|
./jenkins.nix
|
2020-03-16 08:23:54 +01:00
|
|
|
#./kibana.nix
|
2020-02-24 04:45:36 +01:00
|
|
|
#./lektor-gaykraft.nix
|
|
|
|
#./lektor-terranix.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
./mail-fetcher.nix
|
|
|
|
./packages.nix
|
|
|
|
./prometheus.nix
|
|
|
|
./restic.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./taskserver.nix
|
|
|
|
./tinc.nix
|
|
|
|
./transmission.nix
|
|
|
|
./weechat.nix
|
|
|
|
./wetten.nix
|
2020-03-03 17:14:21 +01:00
|
|
|
./nextcloud.nix
|
2020-03-09 16:49:15 +01:00
|
|
|
./mattermost.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
];
|
|
|
|
|
2020-03-17 08:00:57 +01:00
|
|
|
# todo: add this to each file instead summing that here
|
|
|
|
on-failure.plans = {
|
|
|
|
gogs.name = "gogs";
|
|
|
|
jenkins.name = "jenkins";
|
|
|
|
graylog.name = "graylog";
|
|
|
|
prometheus.name = "prometheus";
|
|
|
|
taskserver.name = "taskserver";
|
|
|
|
weechat.name = "weechat";
|
|
|
|
transmission.name = "transmission";
|
|
|
|
mail-fetcher.name = "fetchmail";
|
|
|
|
};
|
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
networking.hostName = "workhorse";
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
# enable initrd ssh
|
|
|
|
configuration.init-ssh = {
|
|
|
|
enable = "enabled";
|
|
|
|
kernelModules = [ "r8169" ];
|
|
|
|
hostECDSAKey = <secrets/init-ssh/host_ecdsa_key>;
|
|
|
|
};
|
|
|
|
|
|
|
|
# nix-shell -p speedtest_cli --run speedtest
|
|
|
|
configuration.fireqos = {
|
|
|
|
enable = true;
|
|
|
|
interface = "eth0";
|
|
|
|
input = 30000;
|
|
|
|
output = 2000;
|
|
|
|
balance = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
security.wrappers = {
|
2019-12-20 05:54:26 +01:00
|
|
|
pmount.source = "${pkgs.pmount}/bin/pmount";
|
|
|
|
pumount.source = "${pkgs.pmount}/bin/pumount";
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
services.logind.lidSwitch = lib.mkForce "ignore";
|
|
|
|
system.custom.x11.enable = lib.mkForce false;
|
|
|
|
programs.custom.steam.enable = false;
|
|
|
|
programs.custom.video.enable = false;
|
|
|
|
|
|
|
|
# font
|
|
|
|
# ----
|
2019-12-20 05:54:26 +01:00
|
|
|
programs.custom.urxvt.fontSize = 17;
|
|
|
|
programs.custom.xterm.fontSize = 17;
|
2019-10-24 02:20:38 +02:00
|
|
|
system.custom.fonts.dpi = 140;
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
nix.useSandbox = true;
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
docker.enable = true;
|
2020-03-06 14:58:47 +01:00
|
|
|
#virtualbox = {
|
|
|
|
# host.enable = true;
|
|
|
|
# guest.x11 = true;
|
|
|
|
# guest.enable = true;
|
|
|
|
#};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
2020-03-10 10:23:49 +01:00
|
|
|
services.smartd.enable = true;
|
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
}
|
|
|
|
|