diff options
author | ene <ene@sils.li> | 2023-02-04 12:03:11 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-04 12:03:11 +0100 |
commit | d45a65809b8d73591d6ea05faa0d9c03959c4351 (patch) | |
tree | fb69e7f99e7ca9c1ea30541ed09d1fd43b108617 /system/filesystemLayouts/filesystemLayouts.nix | |
parent | Build(flake): Updated references (diff) | |
download | nixos-config-d45a65809b8d73591d6ea05faa0d9c03959c4351.tar.gz nixos-config-d45a65809b8d73591d6ea05faa0d9c03959c4351.zip |
Fix: Used the correct syntax
Diffstat (limited to '')
-rw-r--r-- | system/filesystemLayouts/filesystemLayouts.nix | 12 |
1 files changed, 6 insertions, 6 deletions
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"; |