-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.nix
65 lines (54 loc) · 2.36 KB
/
overlay.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ system
, inputs
, pkg
, lib
}:
(final: prev: {
kernel = import inputs.nixpkgs-desktop-kernel {
inherit system;
config = {
allowUnfree = true;
nvidia.acceptLicense = true;
};
};
nbfc-linux = final.callPackage (pkg /nbfc-linux) { };
extest = final.pkgsi686Linux.callPackage (pkg /extest) { };
#mesa-radv-jupiter = final.callPackage (pkg /mesa-radv-jupiter) { mesa-radv-jupiter' = prev.mesa-radv-jupiter; };
steamPackages = prev.steamPackages.overrideScope (finalScope: prevScope: {
steam = prevScope.steam.overrideAttrs (finalAttrs: prevAttrs: {
postInstall = prevAttrs.postInstall + ''
substituteInPlace $out/share/applications/steam.desktop --replace "steam %U" "LD_PRELOAD=${final.extest}/lib/libextest.so steam %U -silent"
'';
});
});
libvirt = prev.libvirt.override (prevAttrs: { enableXen = false; });
openvswitch = prev.openvswitch.override { kernel = null; };
virtiofsd = final.callPackage (pkg /qemu_7/virtiofsd.nix) {
qemu = final.callPackage (pkg /qemu_7) {
inherit (final.darwin.apple_sdk.frameworks) CoreServices Cocoa Hypervisor vmnet;
inherit (final.darwin.stubs) rez setfile;
inherit (final.darwin) sigtool;
};
};
distrobox = prev.distrobox.overrideAttrs (finalAttrs: prevAttrs: {
version = "git";
src = final.fetchFromGitHub {
owner = "89luca89";
repo = "distrobox";
rev = "b7cc70334351ce23ccc3c2556b59efc08d5f54e5";
hash = "sha256-LtsQNGfOPPbTJp/jnxTir5J4tOCJL2iuZLaNZRn+f1I=";
};
});
decky-loader = inputs.nixpkgs-stable.legacyPackages.${system}.callPackage "${inputs.jovian}/pkgs/decky-loader" { };
/*decky-loader = prev.decky-loader.overridePythonAttrs (prevAttrs: {
dependencies = (builtins.filter (x: x != inputs.nixpkgs.legacyPackages.${system}.python3Packages.watchdog) prevAttrs.dependencies) ++ [
inputs.nixpkgs-stable.legacyPackages.${system}.python3Packages.watchdog
];
});*/
ksmwrap64 = final.callPackage (pkg /ksmwrap) { suffix = "64"; };
ksmwrap32 = final.pkgsi686Linux.callPackage (pkg /ksmwrap) { suffix = "32"; };
ksmwrap = final.writeShellScriptBin "ksmwrap" ''
exec env LD_PRELOAD=$LD_PRELOAD:${final.ksmwrap64}/bin/ksmwrap64.so${lib.optionalString (system == "x86_64-linux") ":${final.ksmwrap32}/bin/ksmwrap32.so"} "$@"
'';
udp-reverse-tunnel = final.callPackage (pkg /udp-reverse-tunnel) { };
})