depot/hosts/VEGAS/system.nix

54 lines
1.2 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:29 +03:00
./modules/virtualisation
2021-10-16 21:17:23 +03:00
inputs.agenix.nixosModules.age
# Services
./services/backbone-routing
2021-10-16 21:20:16 +03:00
./services/dns
2021-10-16 20:34:13 +03:00
./services/fbi
]
# 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;
systemd.additionalUpstreamSystemUnits = [
"systemd-journald@.service"
"systemd-journald@.socket"
"systemd-journald-varlink@.socket"
];
}