Skyler Grey | f4d05f0 | 2024-06-06 21:25:39 +0000 | [diff] [blame^] | 1 | # SPDX-FileCopyrightText: 2024 Clicks Codes |
2 | # | ||||
3 | # SPDX-License-Identifier: GPL-3.0-only | ||||
4 | |||||
5 | { lib, config, ... }: | ||||
6 | let | ||||
7 | cfg = config.clicks.storage.raid; | ||||
8 | in | ||||
9 | { | ||||
10 | options.clicks.storage.raid = { | ||||
11 | enable = lib.mkEnableOption "Enable software raid with mdadm"; | ||||
12 | }; | ||||
13 | |||||
14 | config = lib.mkIf cfg.enable { boot.swraid.enable = true; }; | ||||
15 | } |