mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 08:36:33 +01:00
update some zap stuff
This commit is contained in:
parent
0a48cf1147
commit
af3684c2c6
3 changed files with 78 additions and 40 deletions
|
@ -7,7 +7,7 @@ in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
banner = "Hackers are in Your System!!!";
|
banner = "Hackers are in Your System!!!\n";
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
PermitRootLogin = "prohibit-password";
|
PermitRootLogin = "prohibit-password";
|
||||||
|
|
|
@ -86,10 +86,10 @@
|
||||||
((discord.overrideAttrs (old: {
|
((discord.overrideAttrs (old: {
|
||||||
desktopItem = old.desktopItem.override
|
desktopItem = old.desktopItem.override
|
||||||
(old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
(old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
||||||
})).override {
|
})).override {
|
||||||
withOpenASAR = true;
|
withOpenASAR = true;
|
||||||
withVencord = true;
|
withVencord = true;
|
||||||
withTTS = true;
|
withTTS = true;
|
||||||
})
|
})
|
||||||
element-desktop
|
element-desktop
|
||||||
mumble
|
mumble
|
||||||
|
|
|
@ -27,44 +27,93 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"missing.ninja" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:8080/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"doc.missing.ninja" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:3000/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"rss.missing.ninja" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
"db.missing.ninja" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = false;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://134.255.219.135:8000/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "admin@missing.ninja";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.jitsi-meet = {
|
||||||
|
enable = true;
|
||||||
|
hostName = "meet.missing.ninja";
|
||||||
|
nginx.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.cloud-init.enable = true;
|
services.cloud-init.enable = true;
|
||||||
services.cloud-init.network.enable = true;
|
services.cloud-init.network.enable = true;
|
||||||
|
|
||||||
|
services.rss-bridge.enable = true;
|
||||||
|
services.rss-bridge.virtualHost = "rss.missing.ninja";
|
||||||
|
services.rss-bridge.whitelist = [ "*" ];
|
||||||
|
|
||||||
|
services.forgejo = {
|
||||||
|
enable = true;
|
||||||
|
settings.server = {
|
||||||
|
HTTP_PORT = 8080;
|
||||||
|
ROOT_URL = "https://missing.ninja/";
|
||||||
|
};
|
||||||
|
lfs.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 3000 ];
|
allowedTCPPorts = [ 443 8000 ];
|
||||||
allowedUDPPorts = [ 80 3000 ];
|
allowedUDPPorts = [ 443 8000 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.fp = {
|
||||||
# networking = {
|
isNormalUser = true;
|
||||||
# wireless.enable = lib.mkForce false;
|
initialPassword = "fp";
|
||||||
# interfaces.eth0 = {
|
description = "felix";
|
||||||
# ipv4.addresses = [{
|
openssh.authorizedKeys.keys = [
|
||||||
# address = "134.255.219.135";
|
"ssh.ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMBFp5TEsP0rdhkDpMfuMkCuLrDPoXBVu8EpRyLwuAMs fp@IAP-597"
|
||||||
# prefixLength = 24;
|
"ssh-ed25519 AAAAC3NzaC11ZDI1NTE5AAAAIMBFp5TEsPOrdhkDpMfuMkCuLrDP0XBVu8EpRyLWUAMs Fp@IAP-597"
|
||||||
# }];
|
];
|
||||||
# };
|
};
|
||||||
# interfaces.ens18 = {
|
|
||||||
# ipv4.addresses = [{
|
|
||||||
# address = "185.249.199.92";
|
|
||||||
# prefixLength = 24;
|
|
||||||
# }];
|
|
||||||
# };
|
|
||||||
# defaultGateway = "134.255.219.1";
|
|
||||||
# };
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
||||||
|
|
||||||
|
services.openssh.ports = [ 8081 22 ];
|
||||||
|
|
||||||
services.hedgedoc = {
|
services.hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.domain = "missing.ninja";
|
settings.domain = "doc.missing.ninja";
|
||||||
settings.host = "missing.ninja";
|
settings.host = "localhost";
|
||||||
settings.port = 3000;
|
settings.port = 3000;
|
||||||
|
settings.protocolUseSSL = true;
|
||||||
};
|
};
|
||||||
services.surrealdb.enable = true;
|
services.surrealdb.enable = true;
|
||||||
|
services.surrealdb.host = "134.255.219.135";
|
||||||
|
|
||||||
console = {
|
console = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -78,17 +127,6 @@
|
||||||
type = "table";
|
type = "table";
|
||||||
format = "msdos";
|
format = "msdos";
|
||||||
partitions = [
|
partitions = [
|
||||||
# {
|
|
||||||
# name = "ESP";
|
|
||||||
# start = "1M";
|
|
||||||
# end = "500M";
|
|
||||||
# bootable = true;
|
|
||||||
# content = {
|
|
||||||
# type = "filesystem";
|
|
||||||
# format = "vfat";
|
|
||||||
# mountpoint = "/boot";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
{
|
{
|
||||||
name = "root";
|
name = "root";
|
||||||
start = "500M";
|
start = "500M";
|
||||||
|
|
Loading…
Reference in a new issue