add support for another mountpoint than /mnt

This commit is contained in:
lassulus 2023-01-24 15:57:17 +01:00 committed by lassulus
parent d7e178126f
commit af2da574be
6 changed files with 40 additions and 19 deletions

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