i think we good
This commit is contained in:
parent
cdf4703ca4
commit
fd3f8f0b03
2 changed files with 12 additions and 13 deletions
|
@ -23,14 +23,17 @@
|
|||
};
|
||||
|
||||
# todo: module for dis stuff (maybe)
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 22 ];
|
||||
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
shares = {
|
||||
media = {
|
||||
path = "/media";
|
||||
writeable = "yes";
|
||||
public = "yes";
|
||||
browsable = "yes";
|
||||
"create mask" = "0777";
|
||||
"directory mask" = "0777";
|
||||
};
|
||||
|
@ -42,15 +45,10 @@
|
|||
additionalModules = [ pkgs.nginxModules.fancyindex ];
|
||||
virtualHosts.media = {
|
||||
default = true;
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
# addSSL = true;
|
||||
# enableACME = true;
|
||||
|
||||
listen = [{
|
||||
addr = "192.168.1.12";
|
||||
port = "80";
|
||||
}];
|
||||
|
||||
root = "/share";
|
||||
root = "/media";
|
||||
|
||||
serverName = "_";
|
||||
|
||||
|
@ -67,10 +65,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "krizej@protonmail.com";
|
||||
};
|
||||
# security.acme = {
|
||||
# acceptTerms = true;
|
||||
# defaults.email = "krizej@protonmail.com";
|
||||
# };
|
||||
|
||||
chuj = {
|
||||
system = {
|
||||
|
|
|
@ -26,6 +26,7 @@ in {
|
|||
ffmpegthumbnailer
|
||||
gsettings-desktop-schemas
|
||||
xarchiver # not really thunar but can be here ig
|
||||
samba
|
||||
];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue