hosts/soda: init

This commit is contained in:
Max Headroom 2022-05-28 21:53:03 +02:00
parent e5091f23fa
commit 5b01d00114
4 changed files with 61 additions and 0 deletions

View file

@ -5,6 +5,7 @@ in with tools.dns; {
# NixOS machines # NixOS machines
VEGAS = import ./VEGAS tools; VEGAS = import ./VEGAS tools;
prophet = import ./prophet tools; prophet = import ./prophet tools;
soda = import ./soda tools;
# Non-NixOS machine metadata # Non-NixOS machine metadata
AnimusAlpha = let hostNames = [ "alpha.animus.com" "animus.com" ]; in { AnimusAlpha = let hostNames = [ "alpha.animus.com" "animus.com" ]; in {

22
hosts/soda/default.nix Normal file
View file

@ -0,0 +1,22 @@
tools: {
ssh.id = with tools.dns; {
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDShq3dbZy9SARsH8aSjfMQ+/eTW44eZuHVCLvgtDNKw";
hostNames = subResolve "soda" "int";
};
interfaces = {
primary = {
addr = "10.10.2.206";
addrPublic = "95.216.8.12";
link = "eth0";
};
};
enterprise = {
subdomain = "int";
};
arch = "x86_64";
nixos = import ./system.nix;
container = true;
}

8
hosts/soda/soda.nix Normal file
View file

@ -0,0 +1,8 @@
{
environment.systemPackages = [
# provide some editors
nano
vim
neovim
];
}

30
hosts/soda/system.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, aspect, hosts, tools, ... }:
{
imports = with aspect; [
modules.fail2ban
modules.nix-config-server
modules.sss
./soda.nix
] ++ sets.base ++ sets.networking;
boot.isContainer = true;
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
networking.nameservers = [ hosts.VEGAS.interfaces.vstub.addr ];
networking.resolvconf.extraConfig = "local_nameservers='${hosts.VEGAS.interfaces.vstub.addr}'";
networking.hostName = "soda";
time.timeZone = "Europe/Helsinki";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
system.stateVersion = "21.11";
}