Skip to content

Instantly share code, notes, and snippets.

View vcunat's full-sized avatar
💭
🇺🇦🤞🏽

Vladimír Čunát vcunat

💭
🇺🇦🤞🏽
  • cz.nic labs @CZ-NIC
  • Czech Republic
View GitHub Profile
@vcunat
vcunat / xmonad.hs
Last active August 29, 2015 14:16
My XMonad config
import Data.List
import Data.Maybe (fromMaybe)
import qualified Data.Map as M
import XMonad
import XMonad.Config.Xfce (xfceConfig)
--import XMonad.Config.Gnome
--import XMonad.Config.Kde
import XMonad.Config.Desktop (desktopLayoutModifiers)
--- /home/admin/nix/tmp/nvidia-long.txt
+++ /home/admin/nix/tmp/nvidia-short.txt
@@ -1,9 +1,15 @@
+GeForce 900 Series:
+
+GeForce GTX 980, GeForce GTX 970
+GeForce 900M Series (Notebooks):
+
+GeForce GTX 980M, GeForce GTX 970M
GeForce 800M Series (Notebooks):
@vcunat
vcunat / gist:6139ee17ae1dec684fd3
Last active August 29, 2015 14:07
Nixpkgs: 2014 sprint report on multiple-outputs

I worked on splitting packages into multiple outputs. Nix does support derivations with multiple outputs for a few years (I estimate), but it is little used. I focused on using it widely in nixpkgs. The main aim is to reduce runtime closure sizes by separating files not needed at runtime.

Most of the general ideas and parts of the current code were done about one and two years ago, mainly by Eelco. I updated the code wrt. stdenv changes since then and started tweaking and fixing the builds from the most deeply depended packages.

The largest savings are currently due to not having headers and documentation in runtime closures. Probably much more could be saved by turning locale data into plugins, but it's unclear how to do it, so that was not attempted (yet).

Code sharing in nix expressions is attempted as much as possible. That is, for typical package it should be enough just to define the list of outputs with standard names, e.g. outputs = [ "dev" "out" "bin" "man" "doc" ]; and the stdenv code e

@vcunat
vcunat / gist:fe6fce40fb10c699f154
Created May 30, 2014 21:39
sweethome3d crash log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# pthread_getattr_np
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
[ 273.050]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[ 273.051] X Protocol Version 11, Revision 0
[ 273.051] Build Operating System: Linux 3.2.36 x86_64
[ 273.051] Current Operating System: Linux Tarjan.ms.mff.cuni.cz 3.4.32 #1 SMP Tue Feb 19 18:42:42 UTC 2013 x86_64
[ 273.051] Kernel command line: systemConfig=/nix/store/0z89hzfqhsnc8w0a3kpji0hcwnq5hwx2-nixos-0.2pre-9de455cM-aacca19 init=/nix/store/0z89hzfqhsnc8w0a3kpji0hcwnq5hwx2-nixos-0.2pre-9de455cM-aacca19/init
[ 273.051] Build Date: 18 February 2013 09:24:34PM
[ 273.051]
[ 273.051] Current version of pixman: 0.26.2