Merge branch 'main' of ssh://mizuki.guru/imnyang/nix-flakes
This commit is contained in:
commit
79e35c876e
9 changed files with 479 additions and 92 deletions
|
|
@ -9,13 +9,13 @@
|
|||
|
||||
ExtensionSettings = {
|
||||
"figma-windows-ua-spoofer@imnyang.local" = {
|
||||
installation_mode = "force_installed";
|
||||
installation_mode = "normal_installed";
|
||||
install_url = "https://git.mizuki.guru/imnyang/thisiswindowsfigma/releases/download/v1.0.0/d168a70cb6a24fe4a478-1.0.0.xpi";
|
||||
};
|
||||
|
||||
"thisiswindowschromiumnetflix@imnya.ng" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://git.mizuki.guru/imnyang/thisiswindowschromiumnetflix/releases/download/v2026.07.27/b30e361a21474a79be8d-2026.7.27.xpi";
|
||||
installation_mode = "normal_installed";
|
||||
install_url = "https://git.mizuki.guru/imnyang/thisischromiumnetflix/releases/download/v2026.07.27.1/b30e361a21474a79be8d-2026.7.27.1.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
39
modules/mizukios/features/packages/docker2libc.nix
Normal file
39
modules/mizukios/features/packages/docker2libc.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ pkgs }:
|
||||
pkgs.writeShellApplication {
|
||||
name = "nr";
|
||||
|
||||
runtimeInputs = with pkgs; [
|
||||
nix-output-monitor
|
||||
openssh
|
||||
coreutils
|
||||
nix
|
||||
attic-client
|
||||
];
|
||||
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
image="${1:-tmp-elf-extract}"
|
||||
|
||||
docker build -t "$image" .
|
||||
|
||||
cid="$(docker create "$image" /bin/true)"
|
||||
cleanup() {
|
||||
docker rm -f "$cid" >/dev/null 2>&1 || true
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
libc_path="$(docker run --rm --entrypoint /bin/sh "$image" -c 'for p in /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6 /lib/libc.so.6; do if [ -e "$p" ]; then echo "$p"; exit 0; fi; done; exit 1')"
|
||||
ld_path="$(docker run --rm --entrypoint /bin/sh "$image" -c 'for p in /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /lib/ld-linux-x86-64.so.2; do if [ -e "$p" ]; then echo "$p"; exit 0; fi; done; find /lib /usr/lib /lib64 -type f \( -name "ld-linux*.so*" -o -name "ld-*.so*" \) 2>/dev/null | head -n 1')"
|
||||
|
||||
[ -n "$libc_path" ] || { echo "libc.so.6 not found" >&2; exit 1; }
|
||||
[ -n "$ld_path" ] || { echo "ld-linux not found" >&2; exit 1; }
|
||||
|
||||
docker cp -L "${cid}:${libc_path}" ./libc.so.6
|
||||
docker cp -L "${cid}:${ld_path}" ./ld-linux-x86-64.so.2
|
||||
|
||||
file libc.so.6 ld-linux-x86-64.so.2
|
||||
ls -lh libc.so.6 ld-linux-x86-64.so.2
|
||||
'';
|
||||
}
|
||||
|
|
@ -20,6 +20,20 @@
|
|||
extraConfig = ''
|
||||
GRUB_SAVEDEFAULT=true
|
||||
'';
|
||||
|
||||
extraEntries = ''
|
||||
menuentry "netboot.xyz" --class netboot {
|
||||
search --no-floppy --file --set=root /EFI/netboot.xyz/netboot.xyz.efi
|
||||
chainloader /EFI/netboot.xyz/netboot.xyz.efi
|
||||
}
|
||||
'';
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm0644 ${pkgs.fetchurl {
|
||||
url = "https://boot.netboot.xyz/ipxe/netboot.xyz.efi";
|
||||
hash = "sha256-ZoAa7s8Xqru8n+ECKjRYg3uzbXTUe02ip+OqeYseM+s=";
|
||||
}} /boot/EFI/netboot.xyz/netboot.xyz.efi
|
||||
'';
|
||||
};
|
||||
# efi.canTouchEfiVariables = true;
|
||||
efi.efiSysMountPoint = "/boot";
|
||||
|
|
|
|||
Loading…
Reference in a new issue