Skip to content

Instantly share code, notes, and snippets.

@thorhop
thorhop / gist:36fbf6f7f2d0c2c5fe55
Created February 13, 2015 18:18
.xsession-errors
("20863", "20862", "20861", "20860", "20859", "20858", "20857", "20856", "20855", "20854", "20853", "20852", "20851", "20850", "20849", "20848", "20847", "20846", "20845", "20844", "20843", "20842", "20841", "20840", "20839", "20838", "20837", "20836", "20835", "20834", "20833", "20832", "20831", "20830", "20829", "20828", "20827", "20826", "20825", "20824")
("20823", "20822", "20821", "20820", "20819", "20818", "20817", "20816", "20815", "20814", "20813", "20812", "20811", "20810", "20809", "20808", "20807", "20806", "20805", "20804", "20803", "20802", "20801", "20800", "20799", "20798", "20797", "20796", "20795", "20794", "20793", "20792", "20791", "20790", "20789", "20788", "20787", "20786", "20785", "20784")
("20783", "20782", "20781", "20780", "20779", "20778", "20777", "20776", "20775", "20774", "20773", "20772", "20771", "20770", "20769", "20768", "20767", "20766", "20765", "20764", "20763", "20762", "20761", "20760", "20759", "20758", "20757", "20756", "20755", "20754", "20753", "20752", "20751", "207
@thorhop
thorhop / gist:916922c39e415835f396
Created February 13, 2015 14:54
nixos-rebuild.log
/nix/store/ysmyi3fafm9ngnq7hpzg6pkag4k8bi3h-bootstrap-tools/bin/sh: line 5: 32660 Bus error ${dir}$tst
libtool: compile: gcc -g -O2 -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.52\" -DLOCALEDIR=\"/nix/store/ryvapdfr4lx7nxp6ar8s0jm7x8gj76yj-acl-2.2.52/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -include perm_copy.h -c perm_copy_fd.c -fPIC -DPIC -o .libs/perm_copy_fd.o
checking whether mknod is declared without a macro... FAIL: stackoverflow1
/nix/store/ysmyi3fafm9ngnq7hpzg6pkag4k8bi3h-bootstrap-tools/bin/sh: line 5: 32688 Bus error ${dir}$tst
FAIL: stackoverflow2
no
checking whether printf supports infinite 'long double' arguments... ===================
2 of 5 tests failed
@thorhop
thorhop / configuration.nix
Last active March 26, 2020 10:28
My current NixOS config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@thorhop
thorhop / error.log
Created February 11, 2015 23:58
Kernel errpr
feb. 10 14:07:51 Mjolnir kernel: ------------[ cut here ]------------
feb. 10 14:07:51 Mjolnir kernel: WARNING: CPU: 5 PID: 1221 at /tmp/nix-build-linux-3.18.3.drv-0/linux-3.18.3/net/wireless/reg.c:1846 reg_process_hint+0x3dd/0x3f0 [cfg80211]()
feb. 10 14:07:51 Mjolnir kernel: Modules linked in: rfcomm ctr ccm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev af_packet nf_conntrack_ipv6 nf_defrag_ipv6 bnep nf_conntrack_ipv4 nf
feb. 10 14:07:51 Mjolnir kernel: iwlwifi psmouse dcdbas serio_raw efivars cfg80211 rtsx_pci rfkill int3403_thermal battery ac dell_smo8800 int3402_thermal snd_hda_intel snd_hda_controller evdev wmi fan thermal mac_
feb. 10 14:07:51 Mjolnir kernel: unix dm_mod crc32c_generic crc32c_intel btrfs zlib_deflate xor raid6_pq
feb. 10 14:07:51 Mjolnir kernel: CPU: 5 PID: 1221 Comm: kworker/5:1 Tainted: G W O 3.18.3 #1-NixOS
feb. 10 14:07:51 Mjolnir kernel: Hardware name: Dell Inc. XPS 15 9530/XPS 15 9530, BIOS A06 07/16/2014
feb. 10 14:07:51 Mjolnir kern
feb. 11 01:59:34 Mjolnir kernel: usb 3-6: reset full-speed USB device number 3 using xhci_hcd
feb. 11 01:59:34 Mjolnir kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 2.
feb. 11 01:59:34 Mjolnir kernel: usb 3-6: hub failed to enable device, error -22
feb. 11 01:59:34 Mjolnir kernel: usb 3-6: reset full-speed USB device number 3 using xhci_hcd
feb. 11 01:59:34 Mjolnir kernel: xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 2.
feb. 11 01:59:34 Mjolnir kernel: usb 3-6: hub failed to enable device, error -22
feb. 11 01:59:34 Mjolnir kernel: usb 3-6: reset full-speed USB device number 3 using xhci_hcd
feb. 11 01:59:34 Mjolnir kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88041063c240
feb. 11 01:59:34 Mjolnir kernel: xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88041063c288
feb. 11 01:59:34 Mjolnir kernel: usb 3-11: reset high-speed USB device number 5 using xhci_hcd
@thorhop
thorhop / default.nix
Last active August 29, 2015 14:15
Expression for realTimeConfigQuickScan (or "rtconfigscan" for short)
{ stdenv, fetchFromGithub, perl, enableX11 ? true }:
stdenv.mkDerivation {
name = "rtsyscheck";
src = fetchFromGitHub {
owner = "raboof";
repo = "realtimeconfigquickscan";
sha256 = "ece51e802afa1ddb1a6164407fa11b62f3a90d408ac17637bea4dc50d71595a4";
};
@thorhop
thorhop / default.nix
Last active August 29, 2015 14:15
perl/Tk expression
{
Tk = buildPerlPackage rec {
name = "Tk-804.032";
src = fetchurl {
url = "http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/${name}.tar.gz";
sha256 = "0jarvplhfvnm0shhdm2a5zczlnk9mkf8jvfjiwyhjrr3cy1gl0w0";
};
makeMakerFlags = "X11LIB=${pkgs.xlibs.libX11}/lib";
buildInputs = with pkgs; [ xlibs.libX11 libpng ];
configurePhase = ''
building config
GOT: make: Leaving directory `/tmp/nix-build-linux-config-3.14.31.drv-1/linux-3.14.31'
unused option: RT_GROUP_SCHED
unused option: TRANSPARENT_HUGEPAGE
unused option: TRANSPARENT_HUGEPAGE_ALWAYS
unused option: TRANSPARENT_HUGEPAGE_MADVISE
unused option: UBIFS_FS_XATTR
unused option: X86_INTEL_PSTATE
builder for ‘/nix/store/yjiklawwdvs30qb28jymv13wngp09lzk-linux-config-3.14.31.drv’ failed with exit code 255
cannot build derivation ‘/nix/store/r5j5sy3fqxp0da552pwnismy777pfiij-linux-3.14.31.drv’: 1 dependencies couldn't be built
@thorhop
thorhop / default.nix
Created February 8, 2015 15:07
npm2nix slap
{ self, fetchurl, fetchgit ? null, lib }:
{
by-spec."CSSselect"."~0.4.0" =
self.by-version."CSSselect"."0.4.1";
by-version."CSSselect"."0.4.1" = lib.makeOverridable self.buildNodePackage {
name = "CSSselect-0.4.1";
bin = false;
src = [
(fetchurl {
{
Tk = buildPerlPackage rec {
name = "Tk-804.027";
src = fetchurl {
url = "mirror://cpan/authors/id/N/NI/NI-S/${name}.tar.gz";
sha256 = "18nq38df1zxz35d3a6ajj8lw68c1rp80fhdgfzdqq5l5i1ni64pw";
};
buildInputs = [ pkgs.xlibs.libXext pkgs.xlibs.libX11 ];
NIX_CFLAGS_LINK = "-lX11";