60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
{
|
|
inputs,
|
|
outputs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
(import ../base.nix { inherit inputs outputs; })
|
|
./hardware-configuration.nix
|
|
./dyndns
|
|
];
|
|
|
|
users.users = {
|
|
leonhard = {
|
|
initialPassword = "leonhard";
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
openssh.authorizedKeys.keys = config.kekleo.publicKeys;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
hostName = "server";
|
|
firewall.enable = false;
|
|
interfaces.eno1 = {
|
|
ipv4.addresses = [
|
|
{
|
|
address = "192.168.178.210";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
};
|
|
defaultGateway = {
|
|
address = "192.168.178.1";
|
|
interface = "eno1";
|
|
};
|
|
nameservers = [
|
|
"1.1.1.1"
|
|
"8.8.8.8"
|
|
];
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 5432 ];
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
AllowUsers = [ "leonhard" ];
|
|
};
|
|
};
|
|
|
|
kekleo.graphical = false;
|
|
kekleo.publicKeys = [
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDPegeAIABaY9DyWumihNZBlzfdduycvurwYYqoZrdkov2pRVJt8eFhXe+5tdLTKiAq58yzkJ6Zj3CuYb3XuQxX/aDvY4covDXjn1tGKf32xkhTuLd9eDGbFishiC+qROp2/3eZ01DwuttHWo3n/jwOwL3M9mw9Now2i2qaTGuq8wfG5XJ9Cp2+3Ly+mChhtff7Us65dWihNbR3k2WLLvdPJ2HMjeZder0u/IsTTGJj/sytEGt0LPqFOJMl0QuqemkzbeoSAEpVl4huXp5LVT7be2UUmRuekg0p2+EopHunMhUaf7dekiupbKFFNY8aU/eOEZmnakJpOEhcZWaFot825O8jViC9I0NTLazgwttqnZxnuFIp/0Ljf0j7SR/tJa55T0yMH5pyEjw/yvYLplJKbBlPyl2LpsN37l5HKXFtunOsiK/NLL6rLUoTjO5QGCg750c2UKqL8A1g11sW82kscePQTFKbIRmr271ruFWaxnNNh2W5LuJNcUlLf/t/6ps= leonhard@LeonhardsPC"
|
|
];
|
|
}
|