This commit is contained in:
dusk 2022-02-25 20:01:43 +03:00
parent 5649488360
commit 8d07c29d66
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 40 additions and 32 deletions

View File

@ -8,11 +8,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1645204343, "lastModified": 1645729578,
"narHash": "sha256-h/R5uZwiCPh/i8eOcGgAD1hRFF6gHvD1GYZxkKYXTaQ=", "narHash": "sha256-SQEbg+hHG2Q1zU/Oqjj5LK2X/lmjJoBprm4eYORk0UU=",
"owner": "kamadorueda", "owner": "kamadorueda",
"repo": "alejandra", "repo": "alejandra",
"rev": "4a7a938e8d29a9a3b7f45660f0f7a3f6247965bf", "rev": "08627c847e250b3eb654c6febeffaa0626fa8473",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -139,6 +139,22 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1641205782,
"narHash": "sha256-4jY7RCWUoZ9cKD8co0/4tFARpWB+57+r1bLLvXNJliY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b7547d3eed6f32d06102ead8991ec52ab0a4f1a7",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1638122382, "lastModified": 1638122382,
@ -195,11 +211,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1645140957, "lastModified": 1645746341,
"narHash": "sha256-WTJzLSCDLBI537o2L/3kRyqEV5YRT7+1QSGryeKReHE=", "narHash": "sha256-j4fTWByYMGSSl0P7HEJQmbU/ifJtW25n/SoF6hgXN8c=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4f4165a8b9108818ab0193bbd1a252106870b2a2", "rev": "650cfe60f31f3d27ba869bf7db12ca8ded5f1d74",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -262,11 +278,11 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1644525281, "lastModified": 1645433236,
"narHash": "sha256-D3VuWLdnLmAXIkooWAtbTGSQI9Fc1lkvAr94wTxhnTU=", "narHash": "sha256-4va4MvJ076XyPp5h8sm5eMQvCrJ6yZAbBmyw95dGyw4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "48d63e924a2666baf37f4f14a18f19347fbd54a2", "rev": "7f9b6e2babf232412682c09e57ed666d8f84ac2d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -300,11 +316,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1644870092, "lastModified": 1645346782,
"narHash": "sha256-RLPD92lqXW98LDIbbwYqwAbt3R4iD1V1PiylfgBq5cU=", "narHash": "sha256-3qd0cu+2kapIP7cdHW9n8zh1wCvRGg83K7/cCj5Xv+A=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "10eab1c4cd8e715c0b41d32c28af2b89fc67bed0", "rev": "1ccfe243aa6e94bf80f2a66f6be41d086d37fc87",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -331,16 +347,17 @@
"nixpkgsWayland": { "nixpkgsWayland": {
"inputs": { "inputs": {
"cachix": "cachix", "cachix": "cachix",
"flake-compat": "flake-compat_2",
"nixpkgs": [ "nixpkgs": [
"nixos" "nixos"
] ]
}, },
"locked": { "locked": {
"lastModified": 1643841979, "lastModified": 1645727284,
"narHash": "sha256-/TNrk/59NpBADaHzFVraQQlHLfIgAPCgoR3F3vIw0EA=", "narHash": "sha256-xwi46ruR5z4THe967gzW74dQhPmlS5FWSiWuo9aYquY=",
"owner": "colemickens", "owner": "colemickens",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "da0699ec283382fcc018072bafd573b4d7257d0e", "rev": "ddd6f194eed2779df5730e702cecda28bd8938df",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -56,7 +56,7 @@
nixos = { nixos = {
imports = [(digga.lib.importOverlays ./overlays)]; imports = [(digga.lib.importOverlays ./overlays)];
overlays = [ overlays = [
#nixpkgsWayland.overlay nixpkgsWayland.overlay
( (
_: prev: { _: prev: {
#helix = helix.packages.${prev.system}.helix; #helix = helix.packages.${prev.system}.helix;

View File

@ -5,10 +5,9 @@ _: prev: let
let let
flags = [ flags = [
"--flag-switches-begin" "--flag-switches-begin"
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist" "--enable-features=UseOzonePlatform,IgnoreGPUBlocklist"
"--flag-switches-end" "--flag-switches-end"
"--ozone-platform=wayland" "--ozone-platform=wayland"
"--enable-webrtc-pipewire-capturer"
"--ignore-gpu-blocklist" "--ignore-gpu-blocklist"
"--enable-gpu-rasterization" "--enable-gpu-rasterization"
"--enable-zero-copy" "--enable-zero-copy"
@ -19,7 +18,7 @@ _: prev: let
"vscode-wayland" "vscode-wayland"
'' ''
#!${pkgs.stdenv.shell} #!${pkgs.stdenv.shell}
${pkgs.vscode}/bin/code ${lib.concatStringsSep " " flags} ${pkgs.vscodium}/bin/codium ${lib.concatStringsSep " " flags}
''; '';
in { in {
vscodeWayland = vscodeWayland =
@ -41,24 +40,13 @@ in {
inherit pname; inherit pname;
version = pkgs.vscode.version; version = pkgs.vscode.version;
nativeBuildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
phases = [ phases = ["installPhase"];
"installPhase"
/*
"fixupPhase"
*/
];
installPhase = installPhase =
'' ''
mkdir -p $out/bin mkdir -p $out/bin
install -m755 ${vscodeWayland}/bin/${pname}-wayland $out/bin/${pname} install -m755 ${vscodeWayland}/bin/${pname}-wayland $out/bin/${pname}
cp -r ${desktop}/share $out/share cp -r ${desktop}/share $out/share
''; '';
/*
fixupPhase = ''
wrapProgram $out/bin/${pname} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [ vulkan-loader vulkan-extension-layer libGL ])}
'';
*/
} }
); );
} }

Binary file not shown.

View File

@ -280,6 +280,9 @@ in {
dejavu_fonts dejavu_fonts
(nerdfonts.override { fonts = ["Monoid"]; }) (nerdfonts.override { fonts = ["Monoid"]; })
# Programs # Programs
cargo-outdated
cargo-release
cargo-udeps
vulkan-tools vulkan-tools
krita krita
gnome3.seahorse gnome3.seahorse
@ -607,7 +610,7 @@ in {
}; };
vscode = { vscode = {
enable = true; enable = true;
package = pkgs.vscodeWayland; package = pkgs.vscodium;
extensions = extensions =
let let
mkExt = mkExt =