introduce new host

This commit is contained in:
Christoph Hollizeck 2024-11-04 21:23:24 +01:00
parent ff554c06f7
commit a71b29c65d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1763BB530F50279E
5 changed files with 82 additions and 3 deletions

View file

@ -0,0 +1,37 @@
{
lib,
namespace,
pkgs,
...
}:
let
inherit (lib.${namespace}) enabled;
in
{
imports = [ ./hardware.nix ];
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
${namespace} = {
submodules = {
basics = enabled;
};
services = {
factorio-server = enabled;
};
user.trustedPublicKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHFrDiO5+vMfD5MimkzN32iw3MnSMLZ0mHvOrHVVmLD0"
];
};
system.stateVersion = "24.11";
}