2015-12-16 11:06:44 +00: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’).
|
|
|
|
|
|
2016-01-05 15:07:13 +00:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
let
|
2018-09-13 14:17:39 +00:00
|
|
|
|
primaryInterface = config.makefu.server.primary-itf;
|
2016-01-05 15:07:13 +00:00
|
|
|
|
in {
|
2015-12-16 11:06:44 +00:00
|
|
|
|
imports =
|
2016-01-03 05:07:35 +00:00
|
|
|
|
[
|
2018-10-14 21:46:51 +00:00
|
|
|
|
./hw/omo.nix
|
|
|
|
|
#./hw/tsp.nix
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu>
|
2020-05-28 14:06:05 +00:00
|
|
|
|
<stockholm/makefu/2configs/headless.nix>
|
2018-12-17 11:33:57 +00:00
|
|
|
|
<stockholm/makefu/2configs/support-nixos.nix>
|
2020-05-28 14:06:05 +00:00
|
|
|
|
<stockholm/makefu/2configs/nur.nix>
|
|
|
|
|
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/zsh-user.nix>
|
2020-05-28 14:06:05 +00:00
|
|
|
|
<stockholm/makefu/2configs/home-manager>
|
|
|
|
|
<stockholm/makefu/2configs/home-manager/cli.nix>
|
|
|
|
|
<stockholm/makefu/2configs/editor/neovim>
|
|
|
|
|
|
|
|
|
|
|
2018-10-14 21:46:51 +00:00
|
|
|
|
<stockholm/makefu/2configs/backup/state.nix>
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/exim-retiolum.nix>
|
2018-09-13 14:17:39 +00:00
|
|
|
|
# <stockholm/makefu/2configs/smart-monitor.nix>
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/mail-client.nix>
|
2017-12-28 23:12:37 +00:00
|
|
|
|
<stockholm/makefu/2configs/mosh.nix>
|
2018-09-16 22:38:35 +00:00
|
|
|
|
<stockholm/makefu/2configs/tools/core.nix>
|
2020-05-28 14:06:05 +00:00
|
|
|
|
<stockholm/makefu/2configs/tools/dev.nix>
|
2018-09-16 22:38:35 +00:00
|
|
|
|
<stockholm/makefu/2configs/tools/desktop.nix>
|
2018-05-03 16:49:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/tools/mobility.nix>
|
2018-09-16 22:38:35 +00:00
|
|
|
|
{ environment.systemPackages = [ pkgs.esniper ]; }
|
2017-07-15 17:01:02 +00:00
|
|
|
|
#<stockholm/makefu/2configs/graphite-standalone.nix>
|
|
|
|
|
#<stockholm/makefu/2configs/share-user-sftp.nix>
|
2020-05-21 09:03:32 +00:00
|
|
|
|
|
|
|
|
|
<stockholm/makefu/2configs/urlwatch>
|
|
|
|
|
<stockholm/makefu/2configs/legacy_only.nix>
|
|
|
|
|
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/share/omo.nix>
|
2018-10-14 21:46:51 +00:00
|
|
|
|
<stockholm/makefu/2configs/dcpp/airdcpp.nix>
|
|
|
|
|
{ krebs.airdcpp.dcpp.shares = let
|
|
|
|
|
d = path: "/media/cryptX/${path}";
|
|
|
|
|
in {
|
|
|
|
|
emu.path = d "emu";
|
|
|
|
|
audiobooks.path = lib.mkForce (d "audiobooks");
|
|
|
|
|
incoming.path = lib.mkForce (d "torrent");
|
|
|
|
|
anime.path = d "anime";
|
|
|
|
|
};
|
|
|
|
|
krebs.airdcpp.dcpp.DownloadDirectory = "/media/cryptX/torrent/dcpp";
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
# copy config from <secrets/sabnzbd.ini> to /var/lib/sabnzbd/
|
|
|
|
|
#services.sabnzbd.enable = true;
|
|
|
|
|
#systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
|
}
|
2018-03-18 19:37:48 +00:00
|
|
|
|
# <stockholm/makefu/2configs/share/omo-timemachine.nix>
|
2017-07-15 17:01:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
2017-05-25 21:19:36 +00:00
|
|
|
|
|
2018-12-13 00:31:17 +00:00
|
|
|
|
# statistics
|
|
|
|
|
<stockholm/makefu/2configs/stats/client.nix>
|
2017-05-25 21:19:36 +00:00
|
|
|
|
# Logging
|
2017-07-21 08:49:11 +00:00
|
|
|
|
#influx + grafana
|
|
|
|
|
<stockholm/makefu/2configs/stats/server.nix>
|
2017-08-06 14:42:05 +00:00
|
|
|
|
<stockholm/makefu/2configs/stats/nodisk-client.nix>
|
2017-07-21 08:49:11 +00:00
|
|
|
|
# logs to influx
|
|
|
|
|
<stockholm/makefu/2configs/stats/external/aralast.nix>
|
2017-09-19 14:39:58 +00:00
|
|
|
|
<stockholm/makefu/2configs/stats/telegraf>
|
2018-09-18 00:16:12 +00:00
|
|
|
|
# <stockholm/makefu/2configs/stats/telegraf/europastats.nix>
|
|
|
|
|
<stockholm/makefu/2configs/stats/telegraf/hamstats.nix>
|
2020-02-05 16:34:44 +00:00
|
|
|
|
# <stockholm/makefu/2configs/stats/arafetch.nix>
|
2017-05-02 12:04:39 +00:00
|
|
|
|
|
|
|
|
|
# services
|
2018-10-14 21:46:51 +00:00
|
|
|
|
{
|
|
|
|
|
services.nginx.enable = true;
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
|
}
|
|
|
|
|
# <stockholm/makefu/2configs/syncthing.nix>
|
2017-09-29 19:37:24 +00:00
|
|
|
|
<stockholm/makefu/2configs/remote-build/slave.nix>
|
2018-11-21 07:24:35 +00:00
|
|
|
|
# TODO:
|
|
|
|
|
# <stockholm/makefu/2configs/deployment/google-muell.nix>
|
2018-02-14 08:49:57 +00:00
|
|
|
|
<stockholm/makefu/2configs/virtualisation/docker.nix>
|
2018-03-18 19:37:48 +00:00
|
|
|
|
<stockholm/makefu/2configs/bluetooth-mpd.nix>
|
2018-11-21 07:24:35 +00:00
|
|
|
|
|
2020-02-05 16:34:44 +00:00
|
|
|
|
<stockholm/makefu/2configs/ham>
|
|
|
|
|
<stockholm/makefu/2configs/ham/google-muell.nix>
|
|
|
|
|
<stockholm/makefu/2configs/ham/zigbee2mqtt>
|
2018-10-14 21:46:51 +00:00
|
|
|
|
{
|
|
|
|
|
makefu.ps3netsrv = {
|
|
|
|
|
enable = true;
|
|
|
|
|
servedir = "/media/cryptX/emu/ps3";
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-03-18 19:37:48 +00:00
|
|
|
|
{
|
|
|
|
|
hardware.pulseaudio.systemWide = true;
|
|
|
|
|
makefu.mpd.musicDirectory = "/media/cryptX/music";
|
|
|
|
|
}
|
2017-09-29 19:37:24 +00:00
|
|
|
|
|
2017-07-21 08:49:11 +00:00
|
|
|
|
# security
|
|
|
|
|
<stockholm/makefu/2configs/sshd-totp.nix>
|
2017-07-15 17:01:02 +00:00
|
|
|
|
# <stockholm/makefu/2configs/logging/central-logging-client.nix>
|
2017-02-04 13:35:29 +00:00
|
|
|
|
|
2018-05-03 16:49:02 +00:00
|
|
|
|
<stockholm/makefu/2configs/torrent.nix>
|
2016-12-24 22:39:23 +00:00
|
|
|
|
|
2017-07-15 17:01:02 +00:00
|
|
|
|
# <stockholm/makefu/2configs/elchos/search.nix>
|
|
|
|
|
# <stockholm/makefu/2configs/elchos/log.nix>
|
|
|
|
|
# <stockholm/makefu/2configs/elchos/irc-token.nix>
|
2016-06-12 17:43:50 +00:00
|
|
|
|
|
|
|
|
|
## as long as pyload is not in nixpkgs:
|
|
|
|
|
# docker run -d -v /var/lib/pyload:/opt/pyload/pyload-config -v /media/crypt0/pyload:/opt/pyload/Downloads --name pyload --restart=always -p 8112:8000 -P writl/pyload
|
2017-09-19 14:39:58 +00:00
|
|
|
|
|
|
|
|
|
# Temporary:
|
2017-11-14 09:17:16 +00:00
|
|
|
|
# <stockholm/makefu/2configs/temp/rst-issue.nix>
|
2018-09-13 14:17:39 +00:00
|
|
|
|
|
2015-12-16 11:06:44 +00:00
|
|
|
|
];
|
2018-09-18 00:16:12 +00:00
|
|
|
|
makefu.full-populate = true;
|
2018-11-21 07:24:35 +00:00
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2020-05-28 14:06:05 +00:00
|
|
|
|
krebs.rtorrent = {
|
2018-05-03 16:49:02 +00:00
|
|
|
|
downloadDir = lib.mkForce "/media/cryptX/torrent";
|
2016-09-02 10:47:34 +00:00
|
|
|
|
extraConfig = ''
|
2018-10-14 21:46:51 +00:00
|
|
|
|
upload_rate = 500
|
2016-09-02 10:47:34 +00:00
|
|
|
|
'';
|
2016-08-22 16:43:38 +00:00
|
|
|
|
};
|
|
|
|
|
users.groups.share = {
|
2016-10-20 18:54:38 +00:00
|
|
|
|
gid = (import <stockholm/lib>).genid "share";
|
2016-08-22 16:43:38 +00:00
|
|
|
|
members = [ "makefu" "misa" ];
|
|
|
|
|
};
|
2020-02-05 16:34:44 +00:00
|
|
|
|
networking.firewall.trustedInterfaces = [ primaryInterface "docker0" ];
|
2016-01-08 02:37:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-11 18:45:34 +00:00
|
|
|
|
users.users.misa = {
|
|
|
|
|
uid = 9002;
|
|
|
|
|
name = "misa";
|
|
|
|
|
};
|
2015-12-16 11:06:44 +00:00
|
|
|
|
|
2016-01-08 02:37:38 +00:00
|
|
|
|
zramSwap.enable = true;
|
2016-01-03 05:07:35 +00:00
|
|
|
|
|
2020-05-21 09:03:32 +00:00
|
|
|
|
#krebs.Reaktor.reaktor-shack = {
|
|
|
|
|
# nickname = "Reaktor|shack";
|
|
|
|
|
# workdir = "/var/lib/Reaktor/shack";
|
|
|
|
|
# channels = [ "#shackspace" ];
|
|
|
|
|
# plugins = with pkgs.ReaktorPlugins;
|
|
|
|
|
# [ shack-correct
|
|
|
|
|
# # stockholm-issue
|
|
|
|
|
# sed-plugin
|
|
|
|
|
# random-emoji ];
|
|
|
|
|
#};
|
2020-02-05 16:34:44 +00:00
|
|
|
|
#krebs.Reaktor.reaktor-bgt = {
|
|
|
|
|
# nickname = "Reaktor|bgt";
|
|
|
|
|
# workdir = "/var/lib/Reaktor/bgt";
|
|
|
|
|
# channels = [ "#binaergewitter" ];
|
|
|
|
|
# plugins = with pkgs.ReaktorPlugins;
|
|
|
|
|
# [ titlebot
|
|
|
|
|
# # stockholm-issue
|
|
|
|
|
# nixos-version
|
|
|
|
|
# shack-correct
|
|
|
|
|
# sed-plugin
|
|
|
|
|
# random-emoji ];
|
|
|
|
|
#};
|
2017-03-24 12:03:46 +00:00
|
|
|
|
|
2016-01-27 21:00:50 +00:00
|
|
|
|
krebs.build.host = config.krebs.hosts.omo;
|
2015-12-16 11:06:44 +00:00
|
|
|
|
}
|