aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-04 12:03:11 +0100
committerene <ene@sils.li>2023-02-04 12:03:11 +0100
commitd45a65809b8d73591d6ea05faa0d9c03959c4351 (patch)
treefb69e7f99e7ca9c1ea30541ed09d1fd43b108617 /system
parentBuild(flake): Updated references (diff)
downloadnixos-config-d45a65809b8d73591d6ea05faa0d9c03959c4351.zip
Fix: Used the correct syntax
Diffstat (limited to '')
-rw-r--r--system/filesystemLayouts/filesystemLayouts.nix12
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";