depot/hosts/VEGAS/system.nix

70 lines
1.6 KiB
Nix
Raw Normal View History

{ aspect, config, 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
# 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
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
2021-10-16 19:59:19 +02:00
./services/openvpn
2022-02-03 00:43:29 +01:00
./services/sips
2021-10-16 20:24:30 +02:00
./services/sso
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
2022-02-05 19:09:02 +01:00
aspect.modules.hyprspace
]
# 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;
}