mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4a2a6f8bb |
No files matched your search
@@ -110,6 +110,15 @@ parseArgs() {
|
|||||||
extraSystemConfig="$2"
|
extraSystemConfig="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--disko-system-config)
|
||||||
|
if [[ $# -lt 2 ]]; then
|
||||||
|
echo "Option $1 requires one JSON argument." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
extraDiskoSystemConfig="$2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--extra-files)
|
--extra-files)
|
||||||
if [[ $# -lt 3 ]]; then
|
if [[ $# -lt 3 ]]; then
|
||||||
echo "Option $1 requires two arguments: source, destination" >&2
|
echo "Option $1 requires two arguments: source, destination" >&2
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
, flakeAttr
|
, flakeAttr
|
||||||
, diskMappings
|
, diskMappings
|
||||||
, extraSystemConfig ? "{}"
|
, extraSystemConfig ? "{}"
|
||||||
|
, extraDiskoSystemConfig ? "{}"
|
||||||
, writeEfiBootEntries ? false
|
, writeEfiBootEntries ? false
|
||||||
, rootMountPoint ? "/mnt"
|
, rootMountPoint ? "/mnt"
|
||||||
,
|
,
|
||||||
@@ -41,6 +42,9 @@ let
|
|||||||
{
|
{
|
||||||
disko.rootMountPoint = rootMountPoint;
|
disko.rootMountPoint = rootMountPoint;
|
||||||
disko.devices.disk = lib.mkVMOverride cleanedDisks;
|
disko.devices.disk = lib.mkVMOverride cleanedDisks;
|
||||||
|
imports = [
|
||||||
|
({ _file = "disko-install --system-config"; } // (builtins.fromJSON extraDiskoSystemConfig))
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user