i think we good

This commit is contained in:
krizej 2024-08-10 13:27:11 +02:00
parent cdf4703ca4
commit fd3f8f0b03
2 changed files with 12 additions and 13 deletions

View file

@ -23,14 +23,17 @@
}; };
# todo: module for dis stuff (maybe) # todo: module for dis stuff (maybe)
networking.firewall.allowedTCPPorts = [ 80 443 22 ];
services.samba = { services.samba = {
enable = true; enable = true;
openFirewall = true;
shares = { shares = {
media = { media = {
path = "/media"; path = "/media";
writeable = "yes"; writeable = "yes";
public = "yes"; public = "yes";
browsable = "yes";
"create mask" = "0777"; "create mask" = "0777";
"directory mask" = "0777"; "directory mask" = "0777";
}; };
@ -42,15 +45,10 @@
additionalModules = [ pkgs.nginxModules.fancyindex ]; additionalModules = [ pkgs.nginxModules.fancyindex ];
virtualHosts.media = { virtualHosts.media = {
default = true; default = true;
addSSL = true; # addSSL = true;
enableACME = true; # enableACME = true;
listen = [{ root = "/media";
addr = "192.168.1.12";
port = "80";
}];
root = "/share";
serverName = "_"; serverName = "_";
@ -67,10 +65,10 @@
}; };
}; };
security.acme = { # security.acme = {
acceptTerms = true; # acceptTerms = true;
defaults.email = "krizej@protonmail.com"; # defaults.email = "krizej@protonmail.com";
}; # };
chuj = { chuj = {
system = { system = {

View file

@ -26,6 +26,7 @@ in {
ffmpegthumbnailer ffmpegthumbnailer
gsettings-desktop-schemas gsettings-desktop-schemas
xarchiver # not really thunar but can be here ig xarchiver # not really thunar but can be here ig
samba
]; ];
}; };
} }