vaccaria: updates

This commit is contained in:
Gabriel Ebner 2018-09-01 18:44:24 +02:00
parent d078aa51f7
commit e7e07d732a
1 changed files with 19 additions and 8 deletions

View File

@ -57,6 +57,7 @@
allowedTCPPorts = [ allowedTCPPorts = [
445 139 # samba 445 139 # samba
config.services.transmission.settings.peer-port config.services.transmission.settings.peer-port
config.services.rsyncd.port
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
137 138 # samba 137 138 # samba
@ -75,14 +76,14 @@
let fancontrolConfig = pkgs.writeText "fancontrol" '' let fancontrolConfig = pkgs.writeText "fancontrol" ''
# Configuration file generated by pwmconfig, changes will be lost # Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10 INTERVAL=10
DEVPATH=hwmon1=devices/pci0000:00/0000:00:18.3 hwmon0=devices/platform/it87.552 DEVPATH=hwmon0=devices/pci0000:00/0000:00:18.3 hwmon2=devices/platform/it87.552
DEVNAME=hwmon1=k10temp hwmon0=it8720 DEVNAME=hwmon0=k10temp hwmon2=it8720
FCTEMPS=hwmon0/pwm3=hwmon1/temp1_input hwmon0/pwm1=hwmon1/temp1_input FCTEMPS=hwmon2/pwm3=hwmon0/temp1_input hwmon2/pwm1=hwmon0/temp1_input
FCFANS=hwmon0/pwm3=hwmon0/fan1_input hwmon0/pwm1=hwmon0/fan1_input FCFANS=hwmon2/pwm3=hwmon2/fan1_input hwmon2/pwm1=hwmon2/fan1_input
MINTEMP=hwmon0/pwm3=40 hwmon0/pwm1=40 MINTEMP=hwmon2/pwm3=40 hwmon2/pwm1=40
MAXTEMP=hwmon0/pwm3=65 hwmon0/pwm1=65 MAXTEMP=hwmon2/pwm3=65 hwmon2/pwm1=65
MINSTART=hwmon0/pwm3=150 hwmon0/pwm1=150 MINSTART=hwmon2/pwm3=150 hwmon2/pwm1=150
MINSTOP=hwmon0/pwm3=0 hwmon0/pwm1=100 MINSTOP=hwmon2/pwm3=0 hwmon2/pwm1=100
''; in { ''; in {
description = "fancontrol from lm_sensors"; description = "fancontrol from lm_sensors";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
@ -94,4 +95,14 @@
${pkgs.hdparm}/bin/hdparm -B200 -S0 /dev/sd{a,b,c,d,e,f} ${pkgs.hdparm}/bin/hdparm -B200 -S0 /dev/sd{a,b,c,d,e,f}
''; '';
services.rsyncd = {
enable = true;
modules = {
lr_mobile = {
path = "/mnt/vaccaria/fotos/lr_mobile";
"read only" = "yes";
};
};
};
} }