Skip to content

Instantly share code, notes, and snippets.

{ pkgs ? import <nixpkgs> {}
, cairo ? pkgs.cairo
, fetchurl ? pkgs.fetchurl
, glib ? pkgs.glib
, patchelf ? pkgs.patchelf
, stdenv ? pkgs.stdenv
, xorg ? pkgs.xorg
, nss
, nspr
, gnome3
{ ... }:
{
boot.loader.grub.extraConfig = ''
insmod setpci;
setpci -s "00:17.0" 3e.b=8;
setpci -s "02:00.0" 04.b=7;
'';
}
{ config, pkgs, ... }:
# Custom packages
let
mozillaPkgsDir = (import <nixpkgs>{config={};}).fetchFromGitHub {
owner = "Infinisil";
repo = "nixpkgs-mozilla";
rev = "d13abfc71b2bbc6a6effda0b598c82b79c5e6512";
sha256 = "0panppfq354qgdq1hf8dimdmmfz36s85nfn4c6ila75icrsd1mx8";
fetchSubmodules = true;
let
pkgs = import <nixpkgs> {};
in
pkgs.pkgsi686Linux.stdenv.mkDerivation rec {
name = "scyther-${version}";
version = "1.1.3";
src = pkgs.fetchFromGitHub {
owner = "cascremers";
repo = "scyther";
rev = "v${version}";
@cleverca22
cleverca22 / configuration.nix
Last active February 5, 2024 00:06
NixOS virtualbox guest additions
# ...
virtualisation.virtualbox.guest.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
linuxPackages = pkgs.linuxPackages // {
virtualboxGuestAdditions = pkgs.callPackage ./virtualbox-guest.nix {};
};
};
# ...
@cleverca22
cleverca22 / default.nix
Last active May 10, 2017 00:57 — forked from nh2/almost-works-only-glusterfind-fails.nix
nix gluster python scripts packaging
with import <nixpkgs> { config = {}; };
callPackage ./glusterfs.nix {}
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "VulkanExamples";
buildDepends = [ cmake libxcb pkgconfig ];
}
@cleverca22
cleverca22 / default.nix
Last active April 21, 2017 17:28 — forked from Hodapp87/shell.nix
darktable shell.nix draft
{ pkgs ? import <nixpkgs> {} }:
# Based on nixpkgs/pkgs/applications/graphics/darktable/default.nix
let stdenv = pkgs.stdenv;
#assert stdenv ? glibc;
in stdenv.mkDerivation rec {
name = "darktable-git";
src = pkgs.lib.cleanSource ./.;
{ config, pkgs, ... }:
let
simgrid2 = pkgs.stdenv.mkDerivation {
name = "simgrid2";
buildInputs = with pkgs; [ simgrid ];
};
in {
imports = [
./hardware-configuration.nix
];
with import <nixpkgs> {};
let vendorgl = (linuxPackages.nvidia_x11.override {
libsOnly = true;
kernel = null;
}).overrideAttrs (oldAttrs: rec {
name = "nvidia-x11-367.27-${pkgs.linuxPackages.kernel.version}";
src = fetchurl {
url = "http://download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.run";
sha256 = "0000000000000000000000000000000000000000000000000000";