mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
add support for another mountpoint than /mnt
This commit is contained in:
parent
d7e178126f
commit
af2da574be
6 changed files with 40 additions and 19 deletions
10
module.nix
10
module.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue