mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
add support for another mountpoint than /mnt
This commit is contained in:
1 parent
d7e178126f
commit
af2da574be
6 files changed
+40
-19
No files matched your search
+9
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user