Skip to content

Instantly share code, notes, and snippets.

@plumps
plumps / base-configuration.nix
Created April 13, 2016 14:08
error: syntax error, unexpected ';', expecting $end, at /nix/store/nhn4ma62m761nzw0ir80dpyjlk3dyg8d-os/base-configuration.nix:47:6
{ config, pkgs, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
];
boot = {
loader = {
grub = {
with import <nixpkgs> {}; {
gtimelog = python27Packages.buildPythonPackage rec {
name = "gocept.gtimelog-${version}";
version = "1.2.0.dev0";
namePrefix = "";
dontStrip = true;
src = ./.;
propagatedBuildInputs = with pkgs;
[ pygobject
{
// Your GitHub API token
// see: https://github.com/condemil/Gist#generating-access-token
"token": "06cab9981e99114f23327cc3ba5bb0a4c074523f",
// Show GitHub organizations
// Example: "company1", "company2"
"include_orgs": [],
// Show GitHub users
{
"build_systems":
[
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "\"python\" -u \"$file\""
}
],
{ lib, bundlerEnv, ruby_2_0, python2, pkgs, which, defaultGemConfig, zlib, libxml2, graphicsmagick, pkgconfig, imagemagickBig }:
let
pyenv = python2.buildEnv.override {
extraLibs = with pkgs.python2Packages;
[ pymongo ];
} ;
in
bundlerEnv {
@plumps
plumps / nix-shell
Created May 3, 2016 09:18
bundlerEnv: sensu
while evaluating the attribute ‘installPhase’ of the derivation ‘sensu-0.22.1’ at /home/mb/nixpkgs/pkgs/development/interpreters/ruby/bundler-env/default.nix:251:12:
while evaluating the attribute ‘buildCommand’ of the derivation ‘purifiedLockfile’ at /home/mb/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating the attribute ‘text’ of the derivation ‘purifiedLockfile’ at /home/mb/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating the attribute ‘gemset’ of the derivation ‘sources.rb’ at /home/mb/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating the attribute ‘json’ of the derivation ‘gemset.rb’ at /home/mb/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
cannot convert a function to JSON
@plumps
plumps / partial_default.nix
Created May 3, 2016 12:56
just part of a bundleEnv
mongo = attrs: rec {
buildInputs = [ zlib python27Packages.python python27Packages.pymongo mongodb ];
_check = "${ruby_2_0.gemPath}/gems/sensu-plugins-mongodb-${(import ./gemset.nix).sensu-plugins-mongodb.version}/bin/check-mongodb.py";
postInstall = ''
# the ruby check runs a python script
patchShebangs $out/${_check}
'';
};
Jul 12 15:33:00 test08 run-update-puppet[927]: [binary UD] sys-libs/glibc-2.21-r2 [2.22-r4]
Jul 12 15:33:00 test08 run-update-puppet[927]: [ebuild U ] dev-libs/libpcre-8.38-r1 [8.35]
Jul 12 15:33:00 test08 run-update-puppet[927]: [binary UD] app-admin/sudo-1.8.12 [1.8.15-r1]
Jul 12 15:33:00 test08 run-update-puppet[927]: [binary UD] app-admin/fc-agent-1.9.3 [1.9.4]
Jul 12 15:33:00 test08 run-update-puppet[927]: 3 binaries, 1 ebuilds
Jul 12 15:33:00 test08 run-update-puppet[927]: ebuild/binary ratio ok
Jul 12 15:33:00 test08 run-update-puppet[927]: * postmerge
Jul 12 15:33:00 test08 run-update-puppet[927]: /usr/local/sbin/update-system: updates do not converge: [binary UD] sys-libs/glibc-2.21-r2 [2.22-r4]
Jul 12 15:33:00 test08 run-update-puppet[927]: [ebuild U ] dev-libs/libpcre-8.38-r1 [8.35]
Jul 12 15:33:00 test08 run-update-puppet[927]: [binary UD] app-admin/sudo-1.8.12 [1.8.15-r1]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCt1XO6oiCeXJj6e3Ry2IGE+HFrq8GQfAOwNaJOwyxH7gtfmQ22HeosFBVnzRgi6xrOtJhEbi0gfG26Evq6dNSXlxPrQ1bsFFiY0sErfPd/5oEbYrXnr++uNKd+JY87kZ1IVVIWSPOC0aaoX4HLvo9SYtWg6PVlXtZYD0o7IE+8OPa9JsFfaKWWPsYh2wDevw/GqwCHSnTSp7Tl8cwIot+zj9EjUI1WPB+1Vk4eIeQoxIG/XBNq43j9Qei5o+0HQIVEqjPq3RvdTKpDxghRLj8SLmOIAuE/HDovvKx2aOU3ccpwp/Iomupy6NeJpXdmkuCXT+1LVeZm2Exggnhlinu/ plumps@Maksims-MacBook-Pro.local
---
criticalpatterns:
- '[Aa]bort|ABORT'
- '[Ee]rror|ERROR'
- '[Ff]atal|FATAL'
- 'Oops:'
- 'kernel: .* BUG:'
- 'kernel: .*megaraid mbox: reset sequence completed sucessfully'
- 'kernel: .*sd.* Unhandled sense code'
- 'kvm: .* cpu.* unhandled (rd|wr)msr'