Skip to content

Instantly share code, notes, and snippets.

View adisbladis's full-sized avatar
:shipit:
^ This guy

adisbladis

:shipit:
^ This guy
View GitHub Profile
# Teclast X98 Pro nixos install iso
# nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix --no-out-link --show-trace
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix>
];
# Hardware is only well-supported on very recent kernels
{
"name": "example-nix-project",
"version": "0.1.0",
"dependencies": {
"imagemagick-native": "^1.9.3"
},
"devDependencies": {}
}
[nix-shell:~]$ ldd /nix/store/mv9hzr4qwpk4y1p1dcaq3jbypnhgs60v-linphone-3.12.0/bin/.linphone-daemon-wrapped
linux-vdso.so.1 (0x00007fffd8fc1000)
libmediastreamer_voip.so.10 => /nix/store/vcw5arm1116h8x78mlyprwjj32hapb97-mediastreamer2-2.16.1/lib/libmediastreamer_voip.so.10 (0x00007f84abe78000)
libmediastreamer_base.so.10 => /nix/store/vcw5arm1116h8x78mlyprwjj32hapb97-mediastreamer2-2.16.1/lib/libmediastreamer_base.so.10 (0x00007f84abc62000)
libortp.so.13 => /nix/store/2pb1ad1wnjfw3j8rsqxwdxpr2mm8zpcl-ortp-1.0.2/lib/libortp.so.13 (0x00007f84aba34000)
libbctoolbox.so.1 => /nix/store/si7qpim7xf92qj6xf3d4hzv1x6ca502k-bctoolbox-0.6.0/lib/libbctoolbox.so.1 (0x00007f84ab819000)
libbellesip.so.0 => /nix/store/9ydd3czrf7f1b3yhyfylj661620v7gj5-belle-sip-1.6.3/lib/libbellesip.so.0 (0x00007f84ab320000)
libxml2.so.2 => /nix/store/3klpkjgks74fywwk2fidaagpl5jq9q4p-libxml2-2.9.7/lib/libxml2.so.2 (0x00007f84aafbc000)
libbzrtp.so.0 => /nix/store/2qh1dvb7p3aq3ay32s
[adisbladis@gari:~]$ nix-shell -p curlFull --run 'curl --compressed -v https://tools.keycdn.com/brotli-test > /dev/null'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 66.228.37.207...
* TCP_NODELAY set
* Trying 2600:3c03::f03c:91ff:fe89:799e...
* TCP_NODELAY set
* Immediate connect fail for 2600:3c03::f03c:91ff:fe89:799e: Network is unreachable
* Connected to tools.keycdn.com (66.228.37.207) port 443 (#0)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* ALPN, offering h2
ERROR: libnvidia-gtk3.so.387.22: cannot open shared object file: No such file or directory
libnvidia-gtk3.so: cannot open shared object file: No such file or directory
libnvidia-gtk2.so.387.22: cannot open shared object file: No such file or directory
libnvidia-gtk2.so: cannot open shared object file: No such file or directory
ERROR: A problem occured when loading the GUI library. Please check your installation and library path. You may need to specify this library when calling nvidia-settings. Please run
`/nix/store/vixh24x3b2kgr7b3pmly2r3q2zca93pr-nvidia-settings-387.22/bin/nvidia-settings --help` for usage information.
Put this in ~/.ssh/config
Host *
ControlMaster auto
ControlPath ~/.ssh/sock-%r@%h-%p
ControlPersist 600
{
"049231c1ba77dc29ec62188ae766c8455f7efb98b1ec7711d6f3333c2d8938970c301f79fab770c570014c3aaa2ec2b40fcfb03520fc503a6f6ed44f8da7e93770": {
"rpURL": "http://rp-url",
"clientId": "example",
"clientSecret": "example"
}
}
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffae596069]
runtime stack:
runtime.throw(0x4ba4f23, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffa33ac069]
runtime stack:
runtime.throw(0x4af5403, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffa33ac069]
runtime stack:
runtime.throw(0x4af6403, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
goroutine 1 [syscall, locked to thread]: