burke / B
Collection of configuration stuff.
Stars: ✭ 80
Labels
Projects that are alternatives of or similar to B
Neutron
🌠 Purely functional Apache Pulsar client for Scala built on top of Fs2
Stars: ✭ 53 (-33.75%)
Mutual labels: nix
Hs Nix Template
A Haskell project template that can be built with nix and developed by ghcid and cabal-install.
Stars: ✭ 57 (-28.75%)
Mutual labels: nix
Setup.nix
Nixpkgs based build tools for declarative Python packages [[email protected]]
Stars: ✭ 62 (-22.5%)
Mutual labels: nix
Terranix
terranix is a terraform.json generator with a nix-like feeling
Stars: ✭ 77 (-3.75%)
Mutual labels: nix
Homelab
Configuration management for Matt Layher's machines. MIT Licensed.
Stars: ✭ 57 (-28.75%)
Mutual labels: nix
Rien
Predictable Haskell development environments with Cabal and Nix.
Stars: ✭ 65 (-18.75%)
Mutual labels: nix
Backerei
Automated reward payment & account management for Tezos bakers.
Stars: ✭ 51 (-36.25%)
Mutual labels: nix
Nix Tools
Translate Cabals Generic Package Description to a Nix expression
Stars: ✭ 78 (-2.5%)
Mutual labels: nix
Home Manager Template
A quick-start template for using home-manager in a more reproducible way.
Stars: ✭ 73 (-8.75%)
Mutual labels: nix
b
I check this repo out at /b
, and am starting to treat it as a kind of monorepo.
This used to be my dotfiles repo. The entrypoint to all of that stuff now lives at
etc/nix/home.nix
.
Setup (NixOS)
- Clone this to
/b
cp /etc/nixos/configuration.nix{,.bak}
ln -sf /b/etc/nix/nixos.nix /etc/nixos/configuration.nix
Setup (Darwin)
First, create a few directories at /
(this script is untested):
setup_root_mount() {
path=$1
name=$2
echo $path | sudo tee -a /etc/synthetic.conf
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B
echo "LABEL=$name /$path apfs rw" | sudo tee -a /etc/fstab
sudo diskutil apfs addVolume disk1 APFSX $name -mountpoint /$path
sudo diskutil enableOwnership /$path
sudo chown -R $(whoami) /$path
passphrase=$(ruby -rsecurerandom -e 'puts SecureRandom.hex(32)')
uuid="$(diskutil info /nix | awk '$2 == "UUID:" { print $3 }')"
echo $passphrase | sudo diskutil apfs enableFileVault /$path -user disk -stdinpassphrase
security add-generic-password \
-l $name \
-a $uuid \
-s $uuid \
-D "Encrypted Volume Password" \
-w $passphrase \
-T "/System/Library/CoreServices/APFSUserAgent" \
-T "/System/Library/CoreServices/CSUserAgent"
}
setup_root_mount b B
setup_root_mount nix Nix
setup_root_mount run Run
Now:
- Clone this to
/b
- Install nix
- Install nix-darwin
darwin-rebuild switch -I darwin-config=/b/etc/nix/darwin.nix
Or on a shopify laptop:
Add to ~/.nix-channels
:
https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
https://github.com/rycee/home-manager/archive/f5c9303cedd67a57121f0cbe69b585fb74ba82d9.tar.gz home-manager
- Clone this to
/b
- Run
dev update
nix-channel --update
export NIX_PATH=darwin-config=/b/etc/nix/darwin.nix:$NIX_PATH
nix-build '<darwin>' -A installer --out-link /tmp/nix-darwin && /tmp/nix-darwin/bin/darwin-installer
darwin-rebuild switch
Usage
b up
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].