Skip to content

Instantly share code, notes, and snippets.

View fpletz's full-sized avatar
🦺
building

Franz Pletz fpletz

🦺
building
  • Munich, Germany
  • 11:28 (UTC +02:00)
View GitHub Profile
! https://sourcefoundry.org/hack/
URxvt*font: xft:Hack:size=9:antialias=false
URxvt*perl-ext-common: default,matcher,url-picker,font-size
URxvt*url-launcher: firefox
URxvt.keysym.CM-u: perl:url-picker
URxvt.keysym.C-Up: perl:font-size:increase
URxvt.keysym.C-Down: perl:font-size:decrease
URxvt.keysym.C-A-Up: perl:font-size:incglobal
@fpletz
fpletz / gist:5afe279f7ad7466af555
Created February 28, 2016 22:46
NixOS Gitlab Example
services.gitlab = {
enable = true;
databasePassword = "redacted";
https = true;
host = "yolovo.test.bpletza.de";
port = 443;
user = "git";
group = "git";
extraConfig = { gitlab = { default_projects_features = { builds = false; }; }; };
};
@fpletz
fpletz / configuration.nix
Created May 6, 2016 10:44
Mayflower Hydra
{
nix = {
binaryCachePublicKeys = [ "hydra.mayflower.de:9knPU2SJ2xyI0KTJjtUKOGUVdR2/3cOB4VNDQThcfaY= " ];
binaryCaches = [ "https://hydra.mayflower.de/" ];
};
}
#!/bin/sh
case "$1" in
dock)
xrandr --output DP2-1 --auto
xrandr --output eDP1 --off
xrandr --output DP2-2 --auto
xrandr --output DP2-1 --left-of DP2-2
;;
pro*)
services.xserver.displayManager.slim = {
enable = true;
defaultUser = "fpletz";
theme = pkgs.fetchurl {
url = "https://github.com/rnhmjoj/nix-slim/archive/0.3.0.tar.gz";
sha256 = "0qhha3pggh444s5ba4kcgdxv6d2fmrc7cvvii44c779vinb5wis6";
};
};
@fpletz
fpletz / configuration.nix
Created July 3, 2016 17:36
rspamd + postfix + dovecot
{
services = {
rspamd.enable = true;
rmilter =
{ enable = true;
rspamd.enable = true;
postfix.enable = true;
};
{
require = [ ./hardware-x250.nix ];
boot = {
initrd.luks.devices = [
{ name = "boot";
device = "/dev/sda2";
allowDiscards = true;
}
{ name = "tank";
security.pki.certificateFiles = [
(pkgs.fetchurl {
url = "https://www.cacert.org/certs/class3.crt";
sha256 = "0kzq3gvili5mpjkz7p3mf46d14175id4b4ll188mph0wvajxmfpm";
})
];
@fpletz
fpletz / configuration.nix
Created February 2, 2017 19:16
NixIPFS mirror setup
{
networking.firewall = {
allowedTCPPorts = [ 80 4001 ];
};
services.ipfs = {
enable = true;
emptyRepo = true;
gatewayAddress = "/ip6/::1/tcp/8080";
apiAddress = "/ip6/::1/tcp/5001";
};
{
hardware.pulseaudio = {
enable = true;
systemWide = true;
package = pkgs.pulseaudioFull;
zeroconf.discovery.enable = false;
zeroconf.publish.enable = true;
tcp.enable = true;
tcp.anonymousClients.allowAll = true;
};