Wrapped vscode in flags for cleaner scaling
This commit is contained in:
@@ -16,7 +16,24 @@ in {
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
package = pkgs.symlinkJoin {
|
||||
name = "vscodium";
|
||||
pname = "vscodium";
|
||||
version = "1.0";
|
||||
paths = [pkgs.vscodium];
|
||||
|
||||
buildInputs = [pkgs.makeWrapper];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/codium \
|
||||
--set-exec codium \
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--enable-features=WaylandWindowDecorations" \
|
||||
--add-flags "--ozone-platform=wayland" \
|
||||
--add-flags "--disable-features=WaylandFractionalScaleV1"
|
||||
'';
|
||||
};
|
||||
|
||||
enableUpdateCheck = false;
|
||||
enableExtensionUpdateCheck = false;
|
||||
extensions = with plugins; [
|
||||
|
||||
Reference in New Issue
Block a user