add support for another mountpoint than /mnt

This commit is contained in:
lassulus authored and lassulus committed 2023-01-28 18:08:31 +01:00
1 parent d7e178126f
commit af2da574be
6 files changed
+40 -19

No files matched your search

+9 -1
View File
@@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
let
types = import ./types.nix { inherit lib; };
types = import ./types.nix {
inherit lib;
rootMountPoint = config.disko.rootMountPoint;
};
cfg = config.disko;
in {
options.disko = {
@@ -9,6 +12,11 @@ in {
default = {};
description = "The devices to set up";
};
rootMountPoint = lib.mkOption {
type = lib.types.str;
default = "/mnt";
description = "Where the device tree should be mounted by the mountScript";
};
enableConfig = lib.mkOption {
description = ''
configure nixos with the specified devices