2022-02-15 22:30:02 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2017-09-29 21:29:26 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
# external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
|
|
|
# internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
|
|
|
# default-gw = "185.215.224.1";
|
|
|
|
# prefixLength = 24;
|
|
|
|
# external-mac = "46:5b:fc:f4:44:c9";
|
|
|
|
# ext-if = "et0";
|
|
|
|
in {
|
|
|
|
|
|
|
|
imports = [
|
2022-02-18 09:22:59 +01:00
|
|
|
./1blu
|
|
|
|
<stockholm/makefu>
|
|
|
|
|
|
|
|
# common
|
|
|
|
<stockholm/makefu/2configs/nur.nix>
|
|
|
|
<stockholm/makefu/2configs/home-manager>
|
|
|
|
<stockholm/makefu/2configs/home-manager/cli.nix>
|
|
|
|
|
|
|
|
# Security
|
|
|
|
<stockholm/makefu/2configs/sshd-totp.nix>
|
|
|
|
|
|
|
|
# Tools
|
|
|
|
<stockholm/makefu/2configs/tools/core.nix>
|
|
|
|
<stockholm/makefu/2configs/zsh-user.nix>
|
|
|
|
|
|
|
|
# NixOS Build
|
|
|
|
<stockholm/makefu/2configs/remote-build/slave.nix>
|
|
|
|
|
|
|
|
# Storage
|
2022-02-28 21:31:52 +01:00
|
|
|
<stockholm/makefu/2configs/share>
|
2022-02-18 09:22:59 +01:00
|
|
|
<stockholm/makefu/2configs/share/hetzner-client.nix>
|
|
|
|
|
|
|
|
# Services:
|
|
|
|
<stockholm/makefu/2configs/nix-community/mediawiki-matrix-bot.nix>
|
2022-02-28 21:31:52 +01:00
|
|
|
<stockholm/makefu/2configs/torrent/rtorrent.nix>
|
2022-03-01 23:19:44 +01:00
|
|
|
## Web
|
2022-02-28 21:31:52 +01:00
|
|
|
<stockholm/makefu/2configs/deployment/rss.euer.krebsco.de.nix>
|
2022-03-01 23:19:44 +01:00
|
|
|
<stockholm/makefu/2configs/deployment/owncloud.nix>
|
|
|
|
### Moving owncloud data dir to /media/cloud/nextcloud-data
|
|
|
|
{
|
|
|
|
users.users.nextcloud.extraGroups = [ "download" ];
|
|
|
|
fileSystems."/var/lib/nextcloud/data" = {
|
|
|
|
device = "/media/cloud/nextcloud-data";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
}
|
2022-02-28 21:31:52 +01:00
|
|
|
|
|
|
|
# local usage:
|
|
|
|
<stockholm/makefu/2configs/mosh.nix>
|
|
|
|
<stockholm/makefu/2configs/bitlbee.nix>
|
2022-02-18 09:22:59 +01:00
|
|
|
|
|
|
|
# Supervision
|
|
|
|
<stockholm/makefu/2configs/nix-community/supervision.nix>
|
|
|
|
|
|
|
|
# Krebs
|
|
|
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
|
|
|
|
2022-02-28 21:31:52 +01:00
|
|
|
# backup
|
|
|
|
<stockholm/makefu/2configs/backup/state.nix>
|
|
|
|
|
2017-09-29 21:29:26 +02:00
|
|
|
|
|
|
|
];
|
|
|
|
krebs = {
|
|
|
|
enable = true;
|
|
|
|
build.host = config.krebs.hosts.latte;
|
|
|
|
};
|
|
|
|
|
2022-02-28 21:31:52 +01:00
|
|
|
makefu.dl-dir = "/media/cloud/download";
|
2022-03-01 23:19:44 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
2022-02-28 21:31:52 +01:00
|
|
|
|
2017-09-29 21:29:26 +02:00
|
|
|
}
|