mirror of
https://github.com/nmasur/dotfiles
synced 2025-06-05 14:55: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": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746141548,
|
"lastModified": 1748693115,
|
||||||
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
|
"narHash": "sha256-StSrWhklmDuXT93yc3GrTlb0cKSS0agTAxMGjLKAsY8=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f02fddb8acef29a8b32f10a335d44828d7825b78",
|
"rev": "910796cabe436259a29a72e8d3f5e180fc6dfacc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -13,10 +13,17 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
services.filebrowser = {
|
nmasur.services.filebrowser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Generate password: htpasswd -nBC 10 "" | tr -d ':\n'
|
# Generate password: htpasswd -nBC 10 "" | tr -d ':\n'
|
||||||
passwordHash = "$2y$10$ze1cMob0k6pnXRjLowYfZOVZWg4G.dsPtH3TohbUeEbI0sdkG9.za";
|
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 = [
|
nmasur.presets.services.caddy.routes = [
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (config.nmasur.settings) hostnames username;
|
inherit (config.nmasur.settings) username;
|
||||||
cfg = config.services.filebrowser;
|
cfg = config.nmasur.services.filebrowser;
|
||||||
|
|
||||||
dataDir = "/var/lib/filebrowser";
|
dataDir = "/var/lib/filebrowser";
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
options.services.filebrowser = {
|
options.nmasur.services.filebrowser = {
|
||||||
enable = lib.mkEnableOption "Filebrowser private files";
|
enable = lib.mkEnableOption "Filebrowser private files";
|
||||||
passwordHash = lib.mkOption {
|
passwordHash = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
Loading…
x
Reference in New Issue
Block a user