Skip to content

Instantly share code, notes, and snippets.

Danylo Hlynskyi danbst

Block or report user

Report or block danbst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
edolstra /
Last active May 11, 2020
Nix language changes

This document contains some ideas for additions to the Nix language.


The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
View wireguard-conf.nix
# nixos-rebuild build-vm -I nixpkgs=/home/eric/Projects/nixos/nixpkgs -I nixos-config=/tmp/wireguard-conf.nix
{ config, pkgs, ... }:
imports =
nix.maxJobs = 4;
Pitometsu / configuration.nix
Last active Apr 29, 2020
NixOS system config
View configuration.nix
# 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, ... }:
rec {
imports =
thoughtpolice / phabricator.nix
Created Jul 15, 2015
Extensive Phabricator module for NixOS (with Nginx frontend support)
View phabricator.nix
Example usage (in configuration.nix):
services.phabricator.enable = true;
services.phabricator.baseURI = "";
services.phabricator.baseFilesURI = "";
services.phabricator.extensions =
{ libphutil-scrypt = "git://";
libphutil-yubikey = "git://";
travisbhartwell /
Last active May 4, 2020
nix-shell and Shebang Lines

NOTE: a more up-to-date version of this can be found on my blog

nix-shell and Shebang Lines

A few days ago, version 1.9 of the Nix package manager was released. From the release notes:

nix-shell can now be used as a #!-interpreter. This allows you to write scripts that dynamically fetch their own dependencies.

danbst / hask5.lhs
Last active Oct 2, 2015
Console Tetris
View hask5.lhs
Реалізація класичного тетріса (з урізаними можливостями), з виводом у консоль.
Урізано: відображення наступної фігури та рахунку
клавіша прискореного падіння фігури
рівні та зміна швидкостей
Код переписано багато разів, з кожним разом він ставав все кращим та кращим.
> {-# LANGUAGE TemplateHaskell #-}
You can’t perform that action at this time.