rpi config attempt number 2 (two)

This commit is contained in:
krizej 2024-08-10 01:58:03 +02:00
parent 42d81dbf56
commit cdf4703ca4

View file

@ -20,10 +20,56 @@
hardware.raspberry-pi."4" = { hardware.raspberry-pi."4" = {
bluetooth.enable = false; bluetooth.enable = false;
# let me sleep };
leds.eth.disable = true;
leds.act.disable = true; # todo: module for dis stuff (maybe)
leds.pwr.disable = true;
services.samba = {
enable = true;
shares = {
media = {
path = "/media";
writeable = "yes";
public = "yes";
"create mask" = "0777";
"directory mask" = "0777";
};
};
};
services.nginx = {
enable = true;
additionalModules = [ pkgs.nginxModules.fancyindex ];
virtualHosts.media = {
default = true;
addSSL = true;
enableACME = true;
listen = [{
addr = "192.168.1.12";
port = "80";
}];
root = "/share";
serverName = "_";
locations = {
"/" = {
tryFiles = "$uri $uri/ =404";
extraConfig = ''
fancyindex on;
fancyindex_name_length 256;
fancyindex_exact_size off;
'';
};
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = "krizej@protonmail.com";
}; };
chuj = { chuj = {