View default.nix
{ stdenv, fetchurl, trousers, openssl }:
stdenv.mkDerivation rec {
name = "tpm-quote-tools-${version}";
version = "1.0.3";
src = fetchurl {
url = "mirror://sourceforge/project/tpmquotetools/${version}/${name}.tar.gz";
sha256 = "1d6ry2c78sgv0z4phfrwrbvgag83xnnfri2cdzrd86w4yfgnfwdf";
};
View foo.nix
st = st.overrideDerivation (old: {
dontStrip = true;
libXft = xorg.libXft.overrideDerivation (old: {
dontStrip = true;
});
});
View pushover-warning@.service
[Unit]
Description=pushover warning
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -s \
--form-string "token=<PUSHOVER_APPLICATION_TOKEN>" \
--form-string "user=<PUSHOVER_USER_TOKEN>" \
--form-string "message=service %I at %H failed" \
https://api.pushover.net/1/messages.json
View run.sh
#!/bin/sh
### LICENSE (BSD 2-Clause) // ###
#
# Copyright (c) 2014, Daniel Plominski (Plominski IT Consulting)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
View backup-mysql
#!/usr/bin/env bash
# TARGET: Backup-Ziel
# IGNORE: Liste zu ignorierender Datenbanken (durch | getrennt)
IGNORE="mysql|information_schema|performance_schema|test"
PASSWORD="<root-password>"
set -eu -o pipefail
export PATH="/usr/bin/:$PATH"
View .makepkg.conf
# ~aurrepo/.makepkg.conf
GPGKEY="<GPG_KEY_ID>"
PKGDEST=/var/lib/aurrepo
PACKAGER="name <email@address>"
View torrc
# /etc/tor/instances/matchbox/torrc
# trade anonymity of the service for speed/latency
# by decreasing the number of intermediate hops from 6 to 3.
# on debian this requires tor from testing (06-01-2016)
SocksPort 0
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
HiddenServiceDir /var/lib/tor-instances/matchbox/ssh
View initrd-cryptsetup
# /etc/nixos/configuration.nix
boot = {
initrd.network = {
enable = true;
ssh = {
enable = true;
port = 2222;
hostECDSAKey = /etc/nixos/secrets/initrd-ssh-key;
};
postCommands = ''
View default.nix
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
buildInputs = [
zlib
];
}
View theme.nix
environment.sessionVariables = {
# so gtk2.0/gtk3.0 themes can be found
GTK_DATA_PREFIX="/run/current-system/sw";
};