depot/hosts/VEGAS/system.nix

74 lines
1.7 KiB
Nix
Raw Normal View History

{ aspect, config, inputs, lib, pkgs, tools, ... }:
{
imports =
[
# Hardware
./hardware-configuration.nix
2021-10-16 23:24:00 +03:00
# Plumbing
./modules/database
2021-10-16 21:16:46 +03:00
./modules/nginx
2021-10-16 20:39:49 +03:00
./modules/oauth2-proxy
2021-10-16 20:29:15 +03:00
./modules/redis
2021-10-16 20:29:29 +03:00
./modules/virtualisation
2021-10-16 21:17:23 +03:00
inputs.agenix.nixosModules.age
2022-03-25 22:32:30 +02:00
inputs.mms.module
# Services
2021-12-07 20:51:25 +02:00
./services/api
./services/backbone-routing
2021-10-16 20:34:42 +03:00
./services/bitwarden
2022-01-14 23:28:48 +02:00
./services/blog
2021-10-16 21:20:16 +03:00
./services/dns
2021-10-16 20:34:13 +03:00
./services/fbi
2022-01-31 00:15:08 +02:00
./services/gitlab
2021-12-01 23:27:26 +02:00
./services/hydra
2021-10-16 20:36:25 +03:00
./services/ipfs
2021-10-16 20:36:32 +03:00
./services/jokes
2021-10-16 21:23:55 +03:00
./services/nextcloud
2021-10-16 21:22:40 +03:00
./services/nfs
2021-10-16 21:22:48 +03:00
./services/mail
./services/matrix
2022-03-25 22:32:30 +02:00
./services/minecraft
2021-10-16 21:24:13 +03:00
./services/nix/binary-cache.nix
2021-10-16 21:24:25 +03:00
./services/nix/nar-serve.nix
2021-10-16 20:59:06 +03:00
./services/object-storage
2021-10-16 20:59:19 +03:00
./services/openvpn
2022-02-03 01:43:29 +02:00
./services/sips
2021-10-16 21:24:30 +03:00
./services/sso
2022-04-27 23:08:49 +03:00
./services/uptime-kuma
2021-11-26 22:49:21 +02:00
./services/vault
2021-10-16 21:22:58 +03:00
./services/warehouse
2021-10-16 21:00:53 +03:00
./services/websites
2022-03-31 20:42:49 +03:00
aspect.modules.hercules-ci-agent
2022-02-05 20:09:02 +02: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;
}