nixos-config/nixos/configs/workhorse/configuration.nix

78 lines
1.6 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ lib, config, pkgs, ... }: {
2019-10-24 02:20:38 +02:00
imports = [
2021-09-27 18:53:45 +02:00
../../system/server
2019-10-24 02:20:38 +02:00
./hardware-configuration.nix
2021-10-31 17:49:44 +01:00
./mail-fetcher.nix
2021-12-28 16:19:29 +01:00
#./transmission.nix
2021-10-31 17:49:44 +01:00
./nextcloud.nix
./borg.nix
./finance.nix
2019-10-24 02:20:38 +02:00
./gogs.nix
./grafana.nix
./graylog.nix
2021-12-28 19:48:14 +01:00
#./jenkins.nix
2021-12-28 16:19:29 +01:00
#./kibana.nix
2021-10-31 17:49:44 +01:00
./mysql.nix
2019-10-24 02:20:38 +02:00
./packages.nix
./prometheus.nix
./syncthing.nix
./taskserver.nix
./tinc.nix
./weechat.nix
2021-10-31 17:49:44 +01:00
#./property.nix # flask sucks, find something else
2019-10-24 02:20:38 +02:00
];
2021-10-31 17:49:44 +01:00
sops.defaultSopsFile = ../../secrets/workhorse.yaml;
2021-02-12 12:29:41 +01:00
nixpkgs.config.permittedInsecurePackages =
2021-10-31 17:49:44 +01:00
[ "gogs-0.11.91" ];
2021-02-12 12:29:41 +01:00
2020-03-17 08:00:57 +01:00
# todo: add this to each file instead summing that here
2021-10-31 17:49:44 +01:00
#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";
#};
2020-03-17 08:00:57 +01:00
2019-12-20 05:54:26 +01:00
networking.hostName = "workhorse";
2019-10-24 02:20:38 +02:00
2020-04-29 21:32:54 +02:00
# font
# ----
programs.custom.urxvt.fontSize = 17;
programs.custom.xterm.fontSize = 17;
system.custom.fonts.dpi = 140;
2019-10-24 02:20:38 +02:00
# enable initrd ssh
configuration.init-ssh = {
enable = "enabled";
kernelModules = [ "r8169" ];
2021-04-24 14:23:51 +02:00
hostKey = "/etc/ssh/ssh_host_ed25519_key";
2019-10-24 02:20:38 +02:00
};
# nix-shell -p speedtest_cli --run speedtest
configuration.fireqos = {
enable = true;
2020-06-11 18:39:43 +02:00
interface = "enp2s0f1";
2020-05-16 02:25:06 +02:00
input = 45000;
output = 8000;
2019-10-24 02:20:38 +02:00
balance = false;
};
2020-04-29 21:32:54 +02:00
virtualisation = { docker.enable = false; };
2019-10-24 02:20:38 +02:00
2020-04-29 21:32:54 +02:00
services.printing.enable = false;
2020-03-10 10:23:49 +01:00
services.smartd.enable = true;
2019-10-24 02:20:38 +02:00
}