feat: neovim lsp
This commit is contained in:
parent
45563277d5
commit
c8ef495a63
22 changed files with 177 additions and 86 deletions
19
utils/gpu-offload.nix
Normal file
19
utils/gpu-offload.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with pkgs;
|
||||
let
|
||||
patchDesktop =
|
||||
pkg: appName: from: to:
|
||||
lib.hiPrio (
|
||||
pkgs.runCommand "$patched-desktop-entry-for-${appName}" { } ''
|
||||
${coreutils}/bin/mkdir -p $out/share/applications
|
||||
${gnused}/bin/sed 's#${from}#${to}#g' < ${pkg}/share/applications/${appName}.desktop > $out/share/applications/${appName}.desktop
|
||||
''
|
||||
);
|
||||
GPUOffloadApp = pkg: desktopName: patchDesktop pkg desktopName "^Exec=" "Exec=nvidia-offload ";
|
||||
in
|
||||
GPUOffloadApp
|
||||
Loading…
Add table
Add a link
Reference in a new issue