Skip to content

Instantly share code, notes, and snippets.

View dysinger's full-sized avatar
🏠
Working from home

Dysinger dysinger

🏠
Working from home
  • Independent
  • Nearby
View GitHub Profile
@dysinger
dysinger / postmortem.org
Created January 18, 2023 17:20
Postmortem Template

Postmortem

Post Mortem of Outage on <DATE>

  • Post-Mortem Owner: <Firstname Lastname> <Email>
  • Meeting Scheduled For: <DATE>
  • Call Recording: <LINK>
  • Outage Notes: <LINK>
{
# ... #
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.avahi.enable
services.avahi.enable = lib.mkForce false; # USE SYSTEMD-RESOLVED
services.resolved = {
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.enable
enable = true;
@dysinger
dysinger / notes.txt
Created October 8, 2021 23:21
My /etc/nixos/configuration.nix with full disk encrypted ZFS and USB thumb EXT4 /boot
# EFI/BOOT:
# export BOOT=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_4C530001011030101042-0\:0
# parted --script $BOOT -- \
# mklabel gpt \
# mkpart esp fat32 1MiB 512MiB \
# mkpart primary 512MiB 100% \
# set 1 boot on
# mkfs.vfat $BOOT-part1
# ZFS:
@dysinger
dysinger / configuration.nix
Last active December 28, 2022 18:39
Basic Full-Disk Encrypted ZFS Thinkpad (w/ 512 sector SSD) booted from USB key
# Basic Full-Disk Encrypted ZFS Thinkpad (w/ 512 sector SSD) booted from USB key
# EFI/BOOT:
# export BOOT=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_4C530001011030101042-0\:0
# parted --script $BOOT -- \
# mklabel gpt \
# mkpart esp fat32 1MiB 512MiB \
# mkpart primary 512MiB 100% \
# set 1 boot on
# mkfs.vfat -n BOOT $BOOT-part1
{ cargo
, makeRustPlatform
, rustChannelOf
, rustc
, sources
, targetPlatform
}:
rec {
rustNightly =
@dysinger
dysinger / config.org
Created December 23, 2019 16:26
My important dotfiles as an org-mode document

Configuration

Setup

git clone \
    https://github.com/chriskempson/base16-shell.git \
@dysinger
dysinger / init.org
Last active August 9, 2019 22:05
Emacs Org-Mode Init File

Emacs Configuration

My User Variables

(setq user-full-name "Tim Dysinger"
      user-login-name "tim"
      user-mail-address "[email protected]")
@dysinger
dysinger / shell.nix
Created July 12, 2019 00:57
Haskell/Stack/Intero/Nix Env
{ ghcVersion ? "ghc865", pkgs ? import ./nix { inherit ghcVersion; } }:
with pkgs;
haskellPackages.shellFor {
packages = ps: with ps; [
# ADD THIS LOCAL PROJECT'S ENVIRONMENT TO OUR SHELL
interact
];
@dysinger
dysinger / nixos-encrypted-zfs.sh
Last active March 7, 2023 14:51
How I installed Encrypted ZFS root on NixOS
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3
let
privateZeroTierInterfaces = [ "ztbso1b6n3" ]; # ZT NET INTERFACE
in {
system.stateVersion = "19.03";
services.openssh.enable = true;
services.openssh.openFirewall = false; # SSH ONLY ON VPN
services.openssh.passwordAuthentication = false;
networking.firewall.enable = true;