feat: add luanti server

This commit is contained in:
Ranomier 2025-05-09 19:38:05 +02:00
parent ddf8154933
commit 6922232ec5
6 changed files with 55 additions and 6 deletions

View file

@ -0,0 +1,11 @@
{
# Use the GRUB 2 boot loader.
boot.loader.grub = {
enable = true;
# efiSupport = true;
# efiInstallAsRemovable = true;
# Define on which hard drive you want to install Grub.
device = "/dev/vda"; # or "nodev" for efi only
};
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
}

View file

@ -1,16 +1,21 @@
{
imports = [
./boot.nix
./hardware-configuration.nix
../../system_profiles/defaults.nix
../../system_profiles/mini-container.nix
../../system_profiles/mini.nix
../../system_profiles/server.nix
../../modules/game/server/luanti
../../modules/sec_auth/ssh-server.nix
];
users = let
username = "root";
in {
users."${username}".openssh.authorizedKeys.keyFiles = [
/etc/nixos/ssh/authorized_keys.d/${username}
../../certificates/id_ed25519_game-luanti.pub
];
};
}