
This patch was produced in Vim by me, a human being. All errors are the fault of the operator. I did try to be careful. Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com> Co-authored-by: dotlambda <nix@dotlambda.de>
25 lines
481 B
Nix
25 lines
481 B
Nix
{
|
|
writeShellApplication,
|
|
bc,
|
|
diffutils,
|
|
findutils,
|
|
coreutils,
|
|
firmwarePaths ? [
|
|
"/run/current-system/firmware"
|
|
],
|
|
}:
|
|
writeShellApplication {
|
|
name = "edido";
|
|
meta.description = "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}
|
|
'';
|
|
}
|