Skip to content

Instantly share code, notes, and snippets.

View garbas's full-sized avatar
🏠
Working from home

Rok Garbas garbas

🏠
Working from home
View GitHub Profile
@garbas
garbas / python-packages.nix
Created April 21, 2015 14:13
example of autoWrappedVariables or however we call them
...
pyenchant = pythonPackages.buildPythonPackage rec {
name = "pyenchant-1.6.6";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/pyenchant/pyenchant-1.6.6.tar.gz";
md5 = "9f5acfd87d04432bf8df5f9710a17358";
};
xserver = {
vaapiDrivers = [ pkgs.vaapiIntel ];
autorun = true;
enable = true;
exportConfiguration = true;
layout = "us";
windowManager.i3.enable = true;
windowManager.default = "i3";
displayManager.slim = {
defaultUser = "rok";
@garbas
garbas / gist:498314ff35e4bc32bf8a
Created February 13, 2015 15:02
Develop, test and deploy nodejs applications using Nix
Many of you consider package management a solved problem. We can just use
npm to pull in dependencies, right? And when some system requirements are
needed we run to apt/rpm/brew for help.
I guess nobody is having problems with setting their development
environment, installing testing tools (Selenium, phantomjs, ...) always
works? Forgot to pin correct version of npm package again?
Is this really the best thing we can do?
@garbas
garbas / default.nix
Created January 24, 2015 19:59
ruby-example
{ }:
let
pkgs = import <nixpkgs> {};
in pkgs.bundlerEnv {
name = "your-project-dev";
ruby = pkgs.ruby;
builtInputs = with pkgs; [
elasticsearch
mysql
@garbas
garbas / keybase.md
Created November 11, 2014 13:38
keybase.md

Keybase proof

I hereby claim:

  • I am garbas on github.
  • I am garbas (https://keybase.io/garbas) on keybase.
  • I have a public key whose fingerprint is FE9F 7E9D C820 F822 9508 CF4D AB6A 00B3 CCCB B022

To claim this, I am signing this object:

building /nix/store/qd5b9ilg3bvfdjxgp1za28l6dfwv8iqp-node-fsevents-0.2.0
unpacking sources
unpacking source archive /nix/store/553pvmifbrrm8mfqklvy9jn2cn44ikxi-fsevents-0.2.0.tgz
source root is package
patching sources
configuring
no configure script, doing nothing
building
installing
npm WARN package.json [email protected] bugs.url field must be a string url. Deleted.
{ }:
let
pkgs = import <nixpkgs> {};
generated = import <nixpkgs/pkgs/top-level/node-packages.nix> {
inherit pkgs;
inherit (pkgs) stdenv nodejs fetchurl fetchgit;
neededNatives = [ pkgs.python ] ++ pkgs.lib.optional pkgs.stdenv.isLinux pkgs.utillinux;
[root@khaleesi:~]# cat /nix/store/f71036v9424ymdydc8varjv4j3sbh5qf-sshd_config
PidFile /run/sshd.pid
Protocol 2
UsePAM yes
AddressFamily any
Port 22
(Date)
(Sponsor Name)
(Address)
(City), (State, Zip)
Dear (Name of the person),
We are a motivated group of hackers from Ljubljana, gathered under the name
Cypepipe, who got really excited about NixOS and all the tooling around it. We