Compare commits

..

3 commits

Author SHA1 Message Date
cy
3510da9657
install ida-free 2025-02-01 12:08:57 -05:00
cy
95ff04af25
nix-ld to make binaryninja work 2025-01-31 23:44:15 -05:00
cy
a31dbdaf0f
don't overlay cutter
Signed-off-by: cy <cy@cy7.sh>
2025-01-31 21:59:30 -05:00
4 changed files with 66 additions and 23 deletions

38
flake.lock generated
View file

@ -883,6 +883,26 @@
"type": "github"
}
},
"nix-ld": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1737361468,
"narHash": "sha256-+CtIrQZ22MOAOHcpg1zbhX/fVkmEc8A8lYVpXAbXElQ=",
"owner": "nix-community",
"repo": "nix-ld",
"rev": "7f15f8622b63b907fef137689f4528a9447d9377",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-ld",
"type": "github"
}
},
"nix2container": {
"flake": false,
"locked": {
@ -915,22 +935,6 @@
"type": "github"
}
},
"nixpkgs-cutter": {
"locked": {
"lastModified": 1738351607,
"narHash": "sha256-jJ9u1dLnhGeAeQdmziihaka33zEwBOIKmlB6YbFcIjs=",
"owner": "cything",
"repo": "nixpkgs",
"rev": "940b291c7c6ad8e999cb34d8d5de7913f6776c26",
"type": "github"
},
"original": {
"owner": "cything",
"ref": "cutter-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-garage": {
"locked": {
"lastModified": 1736921030,
@ -1223,8 +1227,8 @@
"lix": "lix",
"lix-module": "lix-module",
"niri": "niri",
"nix-ld": "nix-ld",
"nixpkgs": "nixpkgs_5",
"nixpkgs-cutter": "nixpkgs-cutter",
"nixpkgs-garage": "nixpkgs-garage",
"nixvim": "nixvim",
"nvim-github-theme": "nvim-github-theme",

View file

@ -68,9 +68,12 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "flake-compat";
};
nix-ld = {
url = "github:nix-community/nix-ld";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-garage.url = "github:cything/nixpkgs/garage-module"; # unmerged PR
nixpkgs-cutter.url = "github:cything/nixpkgs/cutter-unstable";
nvim-github-theme = {
url = "github:projekt0n/github-nvim-theme";
@ -150,9 +153,6 @@
overlays = [
inputs.niri.overlays.niri
inputs.rust-overlay.overlays.default
(final: prev: {
cutter = inputs.nixpkgs-cutter.legacyPackages.${prev.system}.cutter;
})
] ++ import ./overlay;
};
in
@ -174,6 +174,7 @@
inputs.lanzaboote.nixosModules.lanzaboote
inputs.niri.nixosModules.niri
inputs.lix-module.nixosModules.default
inputs.nix-ld.nixosModules.nix-ld
];
};
chunk = lib.nixosSystem {

View file

@ -112,7 +112,8 @@
sccache
awscli2
lldb
(cutter.withPlugins (plugins: [ plugins.rz-ghidra ]))
(cutter.withPlugins (plugins: with plugins; [ rz-ghidra jsdec sigdb ]))
ida-free
];
programs.waybar.enable = true;

View file

@ -276,7 +276,44 @@
programs.virt-manager.enable = true;
services.usbmuxd.enable = true;
programs.nix-ld.enable = true;
programs.nix-ld.dev = {
enable = true;
# nix run github:thiagokokada/nix-alien#nix-alien-find-libs ./<binary>
libraries = with pkgs; [
mesa
extest
stdenv.cc.cc
libGL
fontconfig
libxkbcommon
zlib
libxml2
dbus
freetype
egl-wayland
waylandpp
cairo
xcb-util-cursor
xorg.libX11
xorg.libxcb
xorg.xcbutilwm
xorg.xcbutilimage
xorg.xcbutilkeysyms
xorg.xcbutilrenderutil
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
xorg.libxkbfile
xorg.libxshmfence
];
};
programs.evolution.enable = true;
xdg.portal = {