Skip to content

Instantly share code, notes, and snippets.

with import <nixpkgs> {};
{
webcore = callPackage ./webcore.nix {};
webapp1 = callPackage ./webapp1.nix {};
}
nix-build root.nix --arg input ./output.json -A everything.mekanism
nixpkgs.config = {
sqlite.interactive = true;
packageOverrides = (import ./overrides.nix).packageOverrides;
};
@cleverca22
cleverca22 / gist:7690326
Created November 28, 2013 11:13
hello_video modified to attempt to output YUV420 frames
/*
Copyright (c) 2012, Broadcom Europe Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
{
allowUnfree = true;
pulseaudio = true;
packageOverrides = pkgs: rec {
mystuff = with pkgs; buildEnv {
name = "mystuff";
paths = [
#ffmpeg-full
wireshark iperf bind tigervnc (pkgs.callPackage ./multimc.nix {}) ];
};
{ stdenv, cmake, pkgconfig, libbsd, nasm, udev, fetchFromGitHub, clang, gnustepbase }:
stdenv.mkDerivation {
name = "libobjc2";
src = fetchFromGitHub {
owner = "gnustep";
repo = "libobjc2";
rev = "2ea11117a392646d960f1e861494e2f27873b15b";
sha256 = "0blbl4k94ll10qq1c0p35dqgr5029ap9kca5h6zx5ws1pg6p35v1";
};
https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/bash/default.nix
-DDEFAULT_PATH_VALUE="/no-such-path"
bash source:
/* Now make our own defaults in case the vars that we think are
important are missing. */
temp_var = set_if_not ("PATH", DEFAULT_PATH_VALUE);
{ pkgs, ... }:
{
services.udev.extraRules = ''
SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="pci", RESULT=="?*", ATTRS{vendor}=="0x1002", ATTRS{device}=="0x4383", ENV{PULSE_PROFILE_SET}="formula-z.conf"
{ config, pkgs, ...}:
let
pixfix = if (builtins.currentSystem == "armv6l-linux") then
[ ./pixman.nix ]
else
[];
passwords = import ./passwords.nix;
keys = import ./keys.nix;
in
@cleverca22
cleverca22 / server-configuration.nix
Last active February 7, 2016 10:24
network booting nixos
{ ... }:
{
imports = [ ./tgt_service.nix ];
services = {
atftpd.enable = true;
atftpd.root = "/tftproot";
tgtd = {
enable = true;
targets = {