70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports =[
|
|
./hardware-configuration.nix
|
|
../../common/common.nix
|
|
];
|
|
|
|
# 5synsrjgvfzywruomjsfvfwhhlgxqhyofkzeqt2eisyijvjvebnu2xyd.onion
|
|
|
|
nix.flakes.enable = true;
|
|
|
|
bios = {
|
|
enable = true;
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
luks = {
|
|
enable = true;
|
|
device.path = "/dev/disk/by-uuid/2f736fba-8a0c-4fb5-8041-c849fb5e1297";
|
|
};
|
|
|
|
networking.hostName = "liza";
|
|
|
|
networking.interfaces.enp1s0.useDHCP = true;
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
hostname = "git.neet.dev";
|
|
disableRegistration = true;
|
|
};
|
|
|
|
services.searx = {
|
|
enable = true;
|
|
environmentFile = "/run/secrets/searx";
|
|
settings = {
|
|
server.port = 8080;
|
|
server.secret_key = "@SEARX_SECRET_KEY@";
|
|
engines = [ {
|
|
name = "wolframalpha";
|
|
shortcut = "wa";
|
|
api_key = "@WOLFRAM_API_KEY@";
|
|
engine = "wolframalpha_api";
|
|
} ];
|
|
};
|
|
};
|
|
services.nginx.virtualHosts."search.neet.space" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString config.services.searx.settings.server.port}";
|
|
};
|
|
};
|
|
age.secrets.searx.file = ../../secrets/searx.age;
|
|
|
|
services.minecraft-server = {
|
|
enable = true;
|
|
jvmOpts = "-Xmx2048M -Xms4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10";
|
|
eula = true;
|
|
declarative = true;
|
|
whitelist = {
|
|
GoogleBot42 = "cae9249c-9e07-450f-8468-60db9950c01d";
|
|
};
|
|
openFirewall = true;
|
|
};
|
|
|
|
security.acme.acceptTerms = true;
|
|
security.acme.email = "zuckerberg@neet.dev";
|
|
}
|