filebrowser: Use module from stable

This commit is contained in:
SebastianStork 2025-11-26 20:13:24 +01:00
parent dc6361e9e4
commit f0bb9d6160
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -12,8 +12,6 @@ let
dataDir = "/var/lib/filebrowser";
in
{
imports = [ "${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/filebrowser.nix" ];
options.custom.services.filebrowser = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
@ -28,16 +26,10 @@ in
};
config = lib.mkIf cfg.enable {
assertions = [
{
assertions = lib.singleton {
assertion = lib'.isTailscaleDomain cfg.domain;
message = lib'.mkUnprotectedMessage "Filebrowser";
}
{
assertion = !lib.pathExists "${modulesPath}/services/web-apps/filebrowser.nix";
message = "TODO: Use filebrowser module from stable nixpkgs";
}
];
};
meta = {
domains.local = [ cfg.domain ];