lib/ceph-storage: minimalize
This commit is contained in:
parent
6aa807a07a
commit
aff7585881
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue