refector
This commit is contained in:
parent
8409c29a1f
commit
e6b0f38caa
32 changed files with 44 additions and 88 deletions
51
modules/home/devtool/vscode.nix
Normal file
51
modules/home/devtool/vscode.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
styleScript = pkgs.writeText "inject.js" ''
|
||||
;(() => {
|
||||
const el = document.createElement('style')
|
||||
el.innerText = `
|
||||
.part.editor>.content .editor-group-container .editor-group-watermark .letterpress {
|
||||
background-image: url("https://file.mizuki.guru/.tesiotjosaeifjpoeawsjfnpoiawsejfopieawjfopjakweopfjawieof/IN_VISUAL_STUDIO_CODE.webp") !important;
|
||||
opacity: 1.0;
|
||||
overflow: visible;
|
||||
filter: none;
|
||||
aspect-ratio: 16 / 9 !important;
|
||||
max-height: fit-content !important;
|
||||
}
|
||||
`
|
||||
document.head.appendChild(el)
|
||||
})();
|
||||
'';
|
||||
in
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
mutableExtensionsDir = true;
|
||||
userSettings = {
|
||||
"extensions.autoUpdate" = true;
|
||||
};
|
||||
package = (pkgs.vscode.override { isInsiders = true; }).overrideAttrs (oldAttrs: {
|
||||
version = "latest";
|
||||
|
||||
src = builtins.fetchTarball {
|
||||
url = "https://code.visualstudio.com/sha/download?build=insider&os=linux-x64";
|
||||
sha256 = "1vzf897inlzxfwmnaykkj3gqg18wbh9zhv7lnh3if6agixv0v91b";
|
||||
};
|
||||
|
||||
buildInputs = oldAttrs.buildInputs ++ [
|
||||
pkgs.krb5
|
||||
pkgs.libsoup_3
|
||||
pkgs.webkitgtk_4_1
|
||||
pkgs.libxtst
|
||||
pkgs.libjpeg8
|
||||
pkgs.pipewire
|
||||
pkgs.libei
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
cat ${styleScript} >> $out/lib/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.js
|
||||
''
|
||||
+ (oldAttrs.postFixup or "");
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue