This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sgdisk -Z -n1:0:+512M -t1:EF00 -c1:EFI -n2:0:0 -t2:E800 -c2:LUKS -p /dev/nvme0n1 | |
cryptsetup luksFormat --key-size 512 --hash sha512 --verify-passphrase /dev/nvme0n1p2 | |
cryptsetup open /dev/nvme0n1p2 cdisk | |
zpool create -o ashift=12 -o altroot=/mnt -m none -O atime=off -O relatime=on -O compression=lz4 tank /dev/mapper/cdisk # take note of hostid | |
zfs create -o mountpoint=none tank/root | |
zfs create -o mountpoint=legacy tank/root/nixos | |
zfs create -o mountpoint=legacy tank/home | |
zfs create -o compression=off -V 1G tank/swap | |
mkfs.vfat -F 32 -n EFI /dev/nvme0n1p1 | |
mkswap -L SWAP /dev/zvol/tank/swap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rofi -dump-xresources | |
! Enabled modi | |
rofi.modi: window,run,ssh | |
! Window opacity | |
rofi.opacity: 100 | |
! Window width | |
rofi.width: 50 | |
! Number of lines | |
rofi.lines: 15 | |
! Number of columns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: | |
- nixhost | |
tasks: | |
- name: Ensure dependency packages are installed | |
pkgng: | |
name: "{{item}}" | |
state: present | |
with_items: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: jailhost-nix | |
tasks: | |
- name: install dependencies | |
pkgng: name={{item}} state=present | |
with_items: | |
- curl | |
- perl5 | |
- openssl | |
- bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.gitconfig | |
[user] | |
name = Tom Lazar | |
email = [email protected] | |
[branch] | |
autosetupmerge = true | |
autosetuprebase = remote | |
[push] | |
default = current |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# run this with ansible-playbook -i ansible_hosts bootstrap.yml -k -c paramiko | |
- hosts: jails_host | |
gather_facts: false | |
remote_user: root | |
tasks: | |
- name: install pkgng | |
raw: "pkg_info | grep -v 'pkg-' > /dev/null ; if $? pkg_add -r pkg; rehash ; pkg2ng; echo 'WITH_PKGNG=yes' >> /etc/make.conf; echo 'packagesite: http://pkgbeta.freebsd.org/freebsd%3A9%3Ax86%3A64/latest' >> /usr/local/etc/pkg.conf; pkg update ; pkg upgrade -y" | |
- name: install python27 | |
raw: "pkg install -y python27" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extensions = mr.developer | |
parts = debug | |
auto-checkout = * | |
repo = pyfidelity | |
[sources] | |
Kotti = git [email protected]:pyfidelity/Kotti.git | |
deform = git [email protected]:pyfidelity/deform.git | |
deform_bootstrap = git [email protected]:pyfidelity/deform_bootstrap.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.gitconfig | |
[branch] | |
autosetupmerge = true | |
[push] | |
default = current | |
[core] | |
excludesfile = .gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" Create a symlink of the current .git inside your Dropbox, now all your | |
local commits will automatically be backed up to Dropbox (without your dropbox | |
being littered with development cruft, like temporary build files) | |
""" | |
from os import getcwd, path, mkdir, symlink, chdir |