lib/ceph-storage: minimalize

This commit is contained in:
Astro 2022-01-09 18:05:37 +01:00
parent 6aa807a07a
commit aff7585881
1 changed files with 2 additions and 4 deletions

View File

@ -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 = {