diff --git a/lib/ceph-storage.nix b/lib/ceph-storage.nix index d7b397ff..294deaa0 100644 --- a/lib/ceph-storage.nix +++ b/lib/ceph-storage.nix @@ -1,7 +1,5 @@ { zentralwerk, config, lib, pkgs, ... }: -let - enabled = config.c3d2.mountCeph != null; -in { +{ options.c3d2 = with lib; { mountCeph = mkOption { type = with types; nullOr str; @@ -10,7 +8,7 @@ in { }; }; - config = lib.mkIf enabled { + config = lib.mkIf (config.c3d2.mountCeph != null) { sops.secrets."ceph/secret" = {}; services.ceph = {