From d45a65809b8d73591d6ea05faa0d9c03959c4351 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 4 Feb 2023 12:03:11 +0100 Subject: Fix: Used the correct syntax --- system/filesystemLayouts/filesystemLayouts.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'system/filesystemLayouts/filesystemLayouts.nix') diff --git a/system/filesystemLayouts/filesystemLayouts.nix b/system/filesystemLayouts/filesystemLayouts.nix index 2f7c8fc2..5992179a 100644 --- a/system/filesystemLayouts/filesystemLayouts.nix +++ b/system/filesystemLayouts/filesystemLayouts.nix @@ -4,23 +4,23 @@ ... }: with lib; let - cfg = config.system.filesystemLayout; + cfg = config.system.filesystemLayouts; in { - options = { - cfg.enable = mkEnableOption (mdDoc "filesysetemLayout"); - cfg.mainDisk = mkOption { + options.system.filesystemLayouts = { + enable = mkEnableOption (mdDoc "filesysetemLayout"); + mainDisk = mkOption { type = lib.types.path; example = literalExpression "/dev/disk/by-uuid/0442cb6d-f13a-4635-b487-fa76189774c5"; description = lib.mdDoc "Path to the main disk"; }; - cfg.efiDisk = mkOption { + efiDisk = mkOption { type = lib.types.path; example = literalExpression "/dev/disk/by-uuid/5143-6136"; description = lib.mdDoc "Path to the main disk"; }; }; - config = mkif cfg.enabled { + config = mkIf cfg.enable { fileSystems = { "/" = { device = "none"; -- cgit 1.4.1