mirror of
https://github.com/nmasur/dotfiles
synced 2025-06-03 19:45:51 +00:00
get around official filebrowser module
This commit is contained in:
parent
c8441fc265
commit
f20d477f67
6
flake.lock
generated
6
flake.lock
generated
@ -310,11 +310,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1746141548,
|
||||
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
|
||||
"lastModified": 1748693115,
|
||||
"narHash": "sha256-StSrWhklmDuXT93yc3GrTlb0cKSS0agTAxMGjLKAsY8=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f02fddb8acef29a8b32f10a335d44828d7825b78",
|
||||
"rev": "910796cabe436259a29a72e8d3f5e180fc6dfacc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -13,10 +13,17 @@ in
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
services.filebrowser = {
|
||||
nmasur.services.filebrowser = {
|
||||
enable = true;
|
||||
# Generate password: htpasswd -nBC 10 "" | tr -d ':\n'
|
||||
passwordHash = "$2y$10$ze1cMob0k6pnXRjLowYfZOVZWg4G.dsPtH3TohbUeEbI0sdkG9.za";
|
||||
# settings = {
|
||||
# database = "/var/lib/filebrowser/filebrowser.db";
|
||||
# port = 8020;
|
||||
# address = "localhost";
|
||||
# log = "stdout";
|
||||
# "auth.method" = "json";
|
||||
# };
|
||||
};
|
||||
|
||||
nmasur.presets.services.caddy.routes = [
|
||||
|
@ -5,8 +5,8 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (config.nmasur.settings) hostnames username;
|
||||
cfg = config.services.filebrowser;
|
||||
inherit (config.nmasur.settings) username;
|
||||
cfg = config.nmasur.services.filebrowser;
|
||||
|
||||
dataDir = "/var/lib/filebrowser";
|
||||
|
||||
@ -26,7 +26,7 @@ let
|
||||
in
|
||||
{
|
||||
|
||||
options.services.filebrowser = {
|
||||
options.nmasur.services.filebrowser = {
|
||||
enable = lib.mkEnableOption "Filebrowser private files";
|
||||
passwordHash = lib.mkOption {
|
||||
type = lib.types.str;
|
Loading…
x
Reference in New Issue
Block a user