mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
filebrowser: Use module from stable
This commit is contained in:
parent
dc6361e9e4
commit
f0bb9d6160
1 changed files with 4 additions and 12 deletions
|
|
@ -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 = [
|
||||
{
|
||||
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";
|
||||
}
|
||||
];
|
||||
assertions = lib.singleton {
|
||||
assertion = lib'.isTailscaleDomain cfg.domain;
|
||||
message = lib'.mkUnprotectedMessage "Filebrowser";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue