Skip to content

Instantly share code, notes, and snippets.

View NWuensche's full-sized avatar

NWuensche NWuensche

View GitHub Profile
{ stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, a2ps, coreutils, gnused, gawk, file, makeWrapper }:
stdenv.mkDerivation rec {
name = "mfcj47dd0dw-cupswrapper-${version}";
version = "3.0.0-1";
src = fetchurl {
url = "http://download.brother.com/welcome/dlf006148/mfc5440cnlpr-1.0.2-1.i386.deb";
sha256 = "ce1c2f3778e4101ddd114d5a6274a8b5a034807f54d68e1b74de42007a616db6";
};
arg0 = /nix/store/6ja2l6r1f30yjpgdg8y3a20fz9wldd2l-mfcj47dd0dw-cupswrapper-3.0.0-1/lib/cups/filter/.brlpdwrapperMFC5440CN-wrapped
arg1 = 71
arg2 = nwuensche
arg3 = (stdin)
arg4 = 1
arg5 = finishings=3 number-up=1 job-uuid=urn:uuid:7cd58a1e-edd9-3a81-725f-0959f60db4e0 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1503348064 time-at-processing=1503348064
arg6 =
PPD = /nix/store/6ja2l6r1f30yjpgdg8y3a20fz9wldd2l-mfcj47dd0dw-cupswrapper-3.0.0-1/share/cups/model/brmfc5440cn_cups.ppd
-------set printer defaults-------
brprintconfij2 -P MFC5440CN -md PLAIN
full journal around hibernation:
Aug 26 19:20:13 nixos xsession[7342]: /nix/store/m5fzkvclh7zvrcldr0gvhwp4m24v663h-terminator-1.0/lib/python2.7/site-packages/terminatorlib/window.py:386: GtkWarning: Das Symbol »terminator_active_broadcast_group« konnte nicht gefunden werden,
Aug 26 19:20:13 nixos xsession[7342]: ebenso wenig wie das Thema »hicolor«. Möglicherweise müssen Sie es installieren.
Aug 26 19:20:13 nixos xsession[7342]: Sie können sich eine Kopie herunterladen unter:
Aug 26 19:20:13 nixos xsession[7342]: http://icon-theme.freedesktop.org/releases
Aug 26 19:20:13 nixos xsession[7342]: self.present()
Aug 26 19:20:58 nixos sudo[10010]: nwuensche : TTY=pts/0 ; PWD=/home/nwuensche ; USER=root ; COMMAND=/run/current-system/sw/bin/systemctl hibernate
Aug 26 19:20:58 nixos sudo[10010]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 26 19:20:58 nixos sudo[10010]: pam_unix(sudo:session): session closed for user root
Aug 26 19:20:58 nixos xss-lock[7403]: Error spawning locker: Kin
{ pkgs, stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, a2ps, coreutils, gnused, gawk, file, makeWrapper, tcsh }:
stdenv.mkDerivation rec {
name = "mfc2j47dd0dw-cupswrapper-${version}";
version = "3.0.0-1";
src = fetchurl {
url = "http://download.brother.com/welcome/dlf005443/dcp145clpr-1.1.2-2.i386.deb";
sha256 = "0230jlsmhh5m1fm5386r2zq0zb7mvi0abp6pxnqddqbg1sfw94i5";
};
#! /nix/store/gfbvimswlv9szpdpp9j3g7kq3pdpb362-bash-4.4-p5/bin/bash -e
export PATH=/nix/store/q43qv7f78pzvs2yncjav1ymrp9sj7hfk-mfc2j47dd0dw-cupswrapper-3.0.0-1/usr/bin:/nix/store/6mba7j26ffdg06q1ja9h8i89wapxs53m-coreutils-8.26/bin${PATH:+:}$PATH
exec -a "$0" "/nix/store/q43qv7f78pzvs2yncjav1ymrp9sj7hfk-mfc2j47dd0dw-cupswrapper-3.0.0-1/lib/cups/filter/.brlpdwrapperDCP145C-wrapped" "${extraFlagsArray[@]}" "$@"
{pkgs, stdenv}:
stdenv.mkDerivation rec {
name = "Planescape-Enhanced";
src = ./install.sh;
unpackPhase = "true";
installPhase = ''
mkdir -p $out
@NWuensche
NWuensche / output
Last active September 8, 2017 10:57
installing ‘Planescape-Enhanced’
warning: dumping very large path (> 256 MiB); this may run out of memory
these derivations will be built:
/nix/store/q1ddwk6cm08y8slw512ia4jf64896zfm-Planescape-Enhanced.drv
building path(s) ‘/nix/store/7rgd36wvn4svp8i2nwbmnlzr9wikislk-Planescape-Enhanced’
unpacking sources
patching sources
configuring
no configure script, doing nothing
building
{pkgs, stdenv, gcc, zlib, lib}:
stdenv.mkDerivation rec {
name = "Planescape-Enhanced";
src = ./install.sh;
unpackPhase = "true";
installPhase = ''
set -x
mkdir -p $out
windowManager.i3.configFile = let original = builtins.readFile /home/nwuensche/.i3/config; wallpaper = pkgs.fetchurl {
url = "https://i.pinimg.com/originals/02/fd/92/02fd92edf03b167382be63790ada0d20.jpg";
sha256 = "1xbmqmm0clnfialj5f8w1g85ivdszr1ih40qxpfrj1nn0rkl9pv3";
}; fehSnippet = "exec_always --no-background-id ${pkgs.feh}/bin/feh --bg-scale ${wallpaper}; in pkgs.writeText "config" (original + fehSnippet);
systemd.timers.lowbatterytimer.timerConfig = {
OnBootSec="0h";
OnUnitInactiveSec="5min";
};
systemd.services.lowbatterytimer = {
serviceConfig = {
Type = "oneshot";
ExecStart = "/run/wrappers/bin/lowbattery";
};
enable = true;