feat: add luanti server
This commit is contained in:
parent
ddf8154933
commit
6922232ec5
6 changed files with 55 additions and 6 deletions
11
hosts/game-luanti/boot.nix
Normal file
11
hosts/game-luanti/boot.nix
Normal 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";
|
||||
}
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue