diff --git a/hosts/cyper-node-2/configuration.nix b/hosts/cyper-node-2/configuration.nix index 576027f..8322e7a 100644 --- a/hosts/cyper-node-2/configuration.nix +++ b/hosts/cyper-node-2/configuration.nix @@ -1,10 +1,8 @@ { imports = [ ./hardware-configuration.nix - ../../nixos/roles/searxng.nix - ../../nixos/roles/frontpage - ../../nixos/roles/vaultwarden.nix ../../nixos/roles/gitea.nix + ../../nixos/roles/filebrowser.nix ]; networking = { diff --git a/nixos/roles/filebrowser.nix b/nixos/roles/filebrowser.nix new file mode 100644 index 0000000..ff3ae5d --- /dev/null +++ b/nixos/roles/filebrowser.nix @@ -0,0 +1,19 @@ +{ ... }: +{ + services.filebrowser = { + enable = true; + + settings = { + port = 8080; + address = "0.0.0.0"; + baseURL = "/filebrowser"; + root = "/storage"; + }; + + # If you want the port opened in the firewall: + openFirewall = true; + }; + + #networking.firewall.allowedTCPPorts = [ 8080 ]; + +}