Compare commits
No commits in common. "9d252f374cb42792bc8726528e7dc4c2220e61f0" and "52fca0a527ee0cea46d10c6af47c24bc9f2a51c0" have entirely different histories.
9d252f374c
...
52fca0a527
@ -11,7 +11,7 @@
|
|||||||
forceLocalDataSSL = true;
|
forceLocalDataSSL = true;
|
||||||
userlistDeny = false;
|
userlistDeny = false;
|
||||||
localUsers = true;
|
localUsers = true;
|
||||||
userlist = ["claire" "manu" "lakeu" "fusil" "stryxion" "nico"];
|
userlist = ["claire" "manu" "lakeu" "fusil" "stryxion"];
|
||||||
rsaCertFile = "/var/vsftpd/vsftpd.pem";
|
rsaCertFile = "/var/vsftpd/vsftpd.pem";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
pasv_min_port=64000
|
pasv_min_port=64000
|
||||||
@ -50,12 +50,6 @@
|
|||||||
hashedPassword = "$6$KZKwBLI6yGuvFg2Q$VCfSnhAacgxlxybTyuCDyNQ2InM8ppG3aa3Bw176TiNAX8tHWUpKesfI9YfcCoGAi1zSzA7b6uC8BmmfrQwg1.";
|
hashedPassword = "$6$KZKwBLI6yGuvFg2Q$VCfSnhAacgxlxybTyuCDyNQ2InM8ppG3aa3Bw176TiNAX8tHWUpKesfI9YfcCoGAi1zSzA7b6uC8BmmfrQwg1.";
|
||||||
description = "Stryxion";
|
description = "Stryxion";
|
||||||
};
|
};
|
||||||
|
|
||||||
nico = {
|
|
||||||
isNormalUser = true;
|
|
||||||
hashedPassword = "$6$.sMznhhJ0fG2qx$XevsEqsjlLAnu/VMgeA6B5YfWY36dUZXtUGiEgPueHzRcfAEi2UXLWRHqcN6AsW1AozepeAP6/lZW3fDAyULA1";
|
|
||||||
description = "MAGENI";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
gitRev = "4c45e960e797d660358a11723e736afee3998261";
|
gitRev = "91cb80e4397d55b19b0beba3fa3846f1a02d0342";
|
||||||
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = false;
|
nixpkgs.config.allowUnfree = false;
|
||||||
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" "minecraft-server" ]);
|
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" ]);
|
||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoSnapshot.enable = true;
|
autoSnapshot.enable = true;
|
||||||
|
@ -307,30 +307,6 @@ in
|
|||||||
|
|
||||||
disable_existing_loggers: False
|
disable_existing_loggers: False
|
||||||
'';
|
'';
|
||||||
app_service_config_files = [
|
|
||||||
"/var/lib/matrix-synapse/mautrix-telegram-registration.yaml"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
mautrix-telegram = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
homeserver = {
|
|
||||||
address = "https://matrix.nyanlout.re";
|
|
||||||
domain = "nyanlout.re";
|
|
||||||
};
|
|
||||||
appservice = {
|
|
||||||
bot_username = "loutrebot";
|
|
||||||
};
|
|
||||||
bridge = {
|
|
||||||
relaybot.authless_portals = false;
|
|
||||||
permissions = {
|
|
||||||
"@nyanloutre:nyanlout.re" = "admin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
environmentFile = "/mnt/secrets/mautrix-telegram.env";
|
|
||||||
serviceDependencies = [ "matrix-synapse.service" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pgmanage = {
|
pgmanage = {
|
||||||
@ -443,30 +419,6 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
maxMemory = 500;
|
maxMemory = 500;
|
||||||
};
|
};
|
||||||
|
|
||||||
minecraft-server = {
|
|
||||||
enable = true;
|
|
||||||
jvmOpts = "-Xms512m -Xmx3072m";
|
|
||||||
eula = true;
|
|
||||||
declarative = true;
|
|
||||||
openFirewall = true;
|
|
||||||
whitelist = {
|
|
||||||
nyanloutre = "db0669ea-e332-4ca3-8d50-f5d1458f5822";
|
|
||||||
Hautension = "f05677f4-be5a-47df-ad77-21c739180aa2";
|
|
||||||
LordDarkKiwi = "79290cfc-0b00-484f-9c94-ab0786402de6";
|
|
||||||
Madahin = "f5f747e3-fac2-43e8-9b9b-a67dc2f368ff";
|
|
||||||
Hopegcx = "4497f759-2210-48db-8764-307d33011442";
|
|
||||||
wyrd68 = "127a3021-cdc1-419f-9010-4651df9ae3af";
|
|
||||||
sparsyateloutre = "d2ff63c1-4e9f-4b21-9bfc-decce5d987b3";
|
|
||||||
};
|
|
||||||
serverProperties = {
|
|
||||||
difficulty = 2;
|
|
||||||
gamemode = 0;
|
|
||||||
max-players = 50;
|
|
||||||
motd = "Hi Mark !";
|
|
||||||
white-list = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.dogetipbot-telegram = {
|
systemd.services.dogetipbot-telegram = {
|
||||||
@ -502,19 +454,16 @@ in
|
|||||||
ips = [ "192.168.20.1/24" ];
|
ips = [ "192.168.20.1/24" ];
|
||||||
privateKeyFile = "/mnt/secrets/wireguard/wg0.privatekey";
|
privateKeyFile = "/mnt/secrets/wireguard/wg0.privatekey";
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
allowedIPsAsRoutes = true;
|
allowedIPsAsRoutes = false;
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
allowedIPs = [ "192.168.20.2/32" ];
|
allowedIPs = [ "0.0.0.0/0" ];
|
||||||
publicKey = "b/SXiqo+GPdNOc54lyEVeUBc6B5AbVMKh+g5EZPGzlE=";
|
publicKey = "b/SXiqo+GPdNOc54lyEVeUBc6B5AbVMKh+g5EZPGzlE=";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nat.internalInterfaces = [ "wg0" ];
|
|
||||||
nat.internalIPs = [ "192.168.20.0/24" ];
|
|
||||||
|
|
||||||
firewall.allowedTCPPorts = [
|
firewall.allowedTCPPorts = [
|
||||||
51413 # Transmission
|
51413 # Transmission
|
||||||
8448 # Matrix federation
|
8448 # Matrix federation
|
||||||
|
Loading…
Reference in New Issue
Block a user