depot/hosts/VEGAS/system.nix

90 lines
2.1 KiB
Nix
Raw Normal View History

2022-05-28 21:53:15 +02:00
{ aspect, config, hosts, inputs, lib, pkgs, tools, ... }:
{
imports =
[
# Hardware
./hardware-configuration.nix
2021-10-16 22:24:00 +02:00
# Plumbing
./modules/database
2021-10-16 20:16:46 +02:00
./modules/nginx
2021-10-16 19:39:49 +02:00
./modules/oauth2-proxy
2021-10-16 19:29:15 +02:00
./modules/redis
2021-10-16 19:29:29 +02:00
./modules/virtualisation
2021-10-16 20:17:23 +02:00
inputs.agenix.nixosModules.age
2022-03-25 21:32:30 +01:00
inputs.mms.module
# Services
2021-12-07 19:51:25 +01:00
./services/api
./services/backbone-routing
2021-10-16 19:34:42 +02:00
./services/bitwarden
2022-01-14 22:28:48 +01:00
./services/blog
2021-10-16 20:20:16 +02:00
./services/dns
2021-10-16 19:34:13 +02:00
./services/fbi
2022-01-30 23:15:08 +01:00
./services/gitlab
2021-12-01 22:27:26 +01:00
./services/hydra
2021-10-16 19:36:25 +02:00
./services/ipfs
2021-10-16 19:36:32 +02:00
./services/jokes
2021-10-16 20:23:55 +02:00
./services/nextcloud
2021-10-16 20:22:40 +02:00
./services/nfs
2021-10-16 20:22:48 +02:00
./services/mail
./services/matrix
2022-03-25 21:32:30 +01:00
./services/minecraft
2022-05-15 00:34:09 +02:00
./services/monitoring
2021-10-16 20:24:13 +02:00
./services/nix/binary-cache.nix
2021-10-16 20:24:25 +02:00
./services/nix/nar-serve.nix
2021-10-16 19:59:06 +02:00
./services/object-storage
2022-05-25 11:11:10 +02:00
./services/searxng
2022-02-03 00:43:29 +01:00
./services/sips
2021-10-16 20:24:30 +02:00
./services/sso
2022-04-27 22:08:49 +02:00
./services/uptime-kuma
2021-11-26 21:49:21 +01:00
./services/vault
2021-10-16 20:22:58 +02:00
./services/warehouse
2021-10-16 20:00:53 +02:00
./services/websites
./services/wireguard-server
2022-03-31 19:42:49 +02:00
aspect.modules.hercules-ci-agent
2022-02-05 19:09:02 +01:00
aspect.modules.hyprspace
2022-05-16 23:13:57 +02:00
aspect.modules.nix-builder
]
# TODO: fix users
# ++ (import ../../users "server").groups.admin
++ aspect.sets.backbone;
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "VEGAS";
networking.domain = "backbone.${tools.meta.domain}";
time.timeZone = "Europe/Helsinki";
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
networking.firewall.enable = true;
system.stateVersion = "21.05";
services.openssh.passwordAuthentication = false;
2022-05-28 21:53:15 +02:00
containers.soda = {
path = inputs.self.nixosConfigurations.soda.config.system.build.toplevel;
privateNetwork = true;
hostBridge = "vmdefault";
localAddress = "${hosts.soda.interfaces.primary.addr}/24";
autoStart = true;
bindMounts.sodaDir = {
hostPath = "/srv/storage/www/soda";
mountPoint = "/soda";
isReadOnly = false;
};
};
}