Skip to content

Instantly share code, notes, and snippets.

@globin
globin / 0001-ghcWithPackages-fix-ghc-version-passing.patch
Created January 7, 2018 02:33
[PATCH] ghcWithPackages: fix ghc version passing
From cb92ea14afbffa1e916cccc71d37b1c9432f0aed Mon Sep 17 00:00:00 2001
From: Robin Gloster <mail@glob.in>
Date: Sun, 7 Jan 2018 03:32:10 +0100
Subject: [PATCH] ghcWithPackages: fix ghc version passing
---
pkgs/development/haskell-modules/make-package-set.nix | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix
@globin
globin / configuration.nix
Last active March 1, 2024 00:46
prometheus on nixos
{ pkgs, lib, config, ... }:
{
networking = {
firewall.allowedTCPPorts = [
3000 # grafana
9090 # prometheus
9093 # alertmanager
];
useDHCP = true;
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@globin
globin / builds
Created August 12, 2016 15:56
possible fortify errors
deps/strdup/strdup.h:22:1: error: expected identifier or '(' before '__extension__'
strdup(const char *str);
strsep.c:65:23: error: register name not specified for 'delim'
register const char *delim;
installwatch.c:3751:5: error: conflicting types for '__open_2'
int __open_2(const char *pathname, int flags, ...) {
/nix/store/88633npw9w7xs4ixyl4sc85bqls8r21d-glibc-2.23-dev/include/bits/fcntl2.h:50:4: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
@globin
globin / doc.diff
Created August 12, 2016 11:26
hardened-doc.diff
<section xml:id="sec-hardening-in-nixpkgs"><title>Hardening in Nixpkgs</title>
<para>By default some flags to harden packages at compile or link-time are set:</para>
<variablelist>
<varlistentry>
<term><varname>hardening_format</varname></term>
<listitem><para>Adds the <option>-Wformat -Wformat-security
-Werror=format-security</option> compiler options. At present,
elasticsearch = {
enable = true;
};
logstash = {
enable = true;
outputConfig = ''
elasticsearch {
protocol => http
}
'';
@globin
globin / poezio.cfg
Created January 30, 2016 15:55
poezio.cfg
# This is the default config for the XMPP client Poezio.
# Comments should be on their own line and NOT at the end
# of a meaningful line.
[Poezio]
# Jabber identifier. Specify it only if you want to connect using an existing
# account on a server. This is optional and useful only for some features,
# like room administration, nickname registration.
# The 'server' option will be ignored if you specify a JID (Jabber identifier)
@globin
globin / pinned-nix-shell.nix
Created December 13, 2015 10:22
pinned-nix-shell
let
fetchgit = (import <nixpkgs> {}).fetchgit;
in
with import (fetchgit {
rev = "0acc1cd552dc4b4d8065cc16a484697167f6e45e";
url = "git://github.com/mayflower/nixpkgs";
sha256 = "1chb14vfzwyv6y2l3i4zgdydfymi0znsv9bhppdazf6r3fsf6w9j";
}) {}; {
duck = rustCargoPlatform.buildRustPackage {
name = "duck";
@globin
globin / xkbDir.patch
Created December 9, 2015 15:20
xkbDir patch
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 3348e8d..1d91cb0 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -280,6 +280,14 @@ in
'';
};
+ xkbDir = mkOption {
+ type = types.path;
@globin
globin / mail
Created December 1, 2015 16:48
mail announcement
Hi,
We had our first Munich NixOS Meetup last week and decided to sprint on the weekend of December 12 & 13
to get stuff done help us get over not being able to attend NixCon.
Currently planned projects are:
* nginx/wpa_supplicant/php config abstraction
* meta information completion
* hydra channel fixing
* packaging introduction