mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
apply deadnix
This commit is contained in:
parent
29d632d7e8
commit
a8d85d9f89
15 changed files with 16 additions and 29 deletions
|
|
@ -11,7 +11,7 @@ let
|
|||
name = "subType";
|
||||
description = "one of ${concatStringsSep "," (attrNames typeAttr)}";
|
||||
check = x: if x ? type then typeAttr.${x.type}.check x else throw "No type option set in:\n${generators.toPretty {} x}";
|
||||
merge = loc: foldl' (res: def: typeAttr.${def.value.type}.merge loc [ def ]) { };
|
||||
merge = loc: foldl' (_res: def: typeAttr.${def.value.type}.merge loc [ def ]) { };
|
||||
nestedTypes = typeAttr;
|
||||
};
|
||||
|
||||
|
|
@ -171,10 +171,6 @@ let
|
|||
readOnly = true;
|
||||
type = lib.types.functionTo lib.types.str;
|
||||
default = args:
|
||||
let
|
||||
name = "format";
|
||||
test = lib.optionalString (config ? name) "${config.${name}}";
|
||||
in
|
||||
''
|
||||
( # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]}
|
||||
${diskoLib.defineHookVariables { inherit config options; }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue