clean old config

This commit is contained in:
nyanloutre 2025-01-07 16:42:37 +01:00
parent f10ac3078e
commit 053455054d
3 changed files with 1 additions and 116 deletions

View file

@ -20,8 +20,6 @@ let
'';
backup_mail_alert = sendMail "paul@nyanlout.re" "ERREUR: Sauvegarde Borg" "Impossible de terminer la sauvegarde. Merci de voir les logs";
unstable = import <nixos-unstable> { };
in
{
@ -74,15 +72,6 @@ in
};
services = {
# postfix = {
# relayHost = "mailvps.nyanlout.re";
# relayPort = 587;
# config = {
# smtp_tls_cert_file = lib.mkForce "/var/lib/postfix/postfixrelay.crt";
# smtp_tls_key_file = lib.mkForce "/var/lib/postfix/postfixrelay.key";
# };
# };
rspamd.workers.controller.extraConfig = ''
secure_ip = ["0.0.0.0/0", "::"];
'';
@ -278,41 +267,6 @@ in
host = "10.30.0.1";
}
];
#tplink.switch = [
# { host = "10.30.50.7"; }
#];
#sensor = [
# {
# platform = "template";
# sensors = {
# serveur_amps = {
# friendly_name_template = "{{ states.switch.serveur.name}} Current";
# value_template = ''{{ states.switch.serveur.attributes["current_a"] | float }}'';
# unit_of_measurement = "A";
# };
# serveur_watts = {
# friendly_name_template = "{{ states.switch.serveur.name}} Current Consumption";
# value_template = ''{{ states.switch.serveur.attributes["current_power_w"] | float }}'';
# unit_of_measurement = "W";
# };
# serveur_total_kwh = {
# friendly_name_template = "{{ states.switch.serveur.name}} Total Consumption";
# value_template = ''{{ states.switch.serveur.attributes["total_energy_kwh"] | float }}'';
# unit_of_measurement = "kWh";
# };
# serveur_volts = {
# friendly_name_template = "{{ states.switch.serveur.name}} Voltage";
# value_template = ''{{ states.switch.serveur.attributes["voltage"] | float }}'';
# unit_of_measurement = "V";
# };
# serveur_today_kwh = {
# friendly_name_template = "{{ states.switch.serveur.name}} Today's Consumption";
# value_template = ''{{ states.switch.serveur.attributes["today_energy_kwh"] | float }}'';
# unit_of_measurement = "kWh";
# };
# };
# }
#];
};
};
@ -363,7 +317,6 @@ in
];
firewall.allowedTCPPorts = [
8448 # Matrix federation
20 21 # FTP
];