From fd3f8f0b033cc4263bdd968db7b8cb04b048e35b Mon Sep 17 00:00:00 2001 From: krizej Date: Sat, 10 Aug 2024 13:27:11 +0200 Subject: [PATCH] i think we good --- hosts/rpi/default.nix | 22 ++++++++++------------ modules/stuff/thunar.nix | 3 ++- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/hosts/rpi/default.nix b/hosts/rpi/default.nix index 55ff463..9cc0a01 100644 --- a/hosts/rpi/default.nix +++ b/hosts/rpi/default.nix @@ -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 = { diff --git a/modules/stuff/thunar.nix b/modules/stuff/thunar.nix index de6031d..aef008e 100644 --- a/modules/stuff/thunar.nix +++ b/modules/stuff/thunar.nix @@ -26,6 +26,7 @@ in { ffmpegthumbnailer gsettings-desktop-schemas xarchiver # not really thunar but can be here ig + samba ]; }; -} \ No newline at end of file +}