Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion extras/partitions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let
partitionModule = { config, options, name, ... }: {
options = {
extraInputsFlake = mkOption {
type = types.raw;
type = types.either types.path types.str;
default = { };
description = ''
Location of a flake whose inputs to add to the inputs module argument in the partition.
Expand Down Expand Up @@ -74,6 +74,7 @@ let
p = options.extraInputsFlake.value;
flake =
if builtins.typeOf p == "path"
|| (builtins.typeOf p == "string" && lib.strings.hasPrefix "${builtins.storeDir}/" p)
then get-flake p
else builtins.getFlake p;
in
Expand Down