f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
18 lines
458 B
Nix
18 lines
458 B
Nix
{ writeShellApplication
|
|
, bc
|
|
, diffutils
|
|
, findutils
|
|
, coreutils
|
|
, firmwarePaths ? [
|
|
"/run/current-system/firmware"
|
|
]
|
|
}:
|
|
writeShellApplication {
|
|
name = "edido";
|
|
meta.description = "A tool to apply display configuration from `boot.kernelParams`.";
|
|
runtimeInputs = [ diffutils findutils coreutils bc ];
|
|
text = ''
|
|
FIRMWARE_PATH="''${FIRMWARE_PATH:-"${builtins.concatStringsSep ":" firmwarePaths}"}"
|
|
${builtins.readFile ./edido.sh}
|
|
'';
|
|
}
|