All Projects → burke → B

burke / B

Collection of configuration stuff.

Labels

Projects that are alternatives of or similar to B

Idempotent Desktop
🛸 NixOS, Xmonad, Neovim
Stars: ✭ 51 (-36.25%)
Mutual labels:  nix
Nixos Configurations
Stars: ✭ 58 (-27.5%)
Mutual labels:  nix
Elm2nix
Convert Elm project into Nix expressions
Stars: ✭ 65 (-18.75%)
Mutual labels:  nix
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
Nix Dotfiles
My personal nix and nixos configuration
Stars: ✭ 48 (-40%)
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
Snabblab Nixos
NixOS configuration for the Snabb Lab
Stars: ✭ 53 (-33.75%)
Mutual labels:  nix
Nix Gitignore
superseded / unmaintained
Stars: ✭ 56 (-30%)
Mutual labels:  nix
Deckdeckgo
The web open source editor for presentations
Stars: ✭ 1,117 (+1296.25%)
Mutual labels:  nix
Microgram
ABANDONED
Stars: ✭ 52 (-35%)
Mutual labels:  nix
Cardano Graphql
GraphQL API for Cardano
Stars: ✭ 66 (-17.5%)
Mutual labels:  nix
Backerei
Automated reward payment & account management for Tezos bakers.
Stars: ✭ 51 (-36.25%)
Mutual labels:  nix
Neovim Nightly Overlay
[[email protected]]
Stars: ✭ 60 (-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
Dotfiles
well-tailored NixOS & nix-darwin dotfiles
Stars: ✭ 63 (-21.25%)
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)

  1. Clone this to /b
  2. cp /etc/nixos/configuration.nix{,.bak}
  3. 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:

  1. Clone this to /b
  2. Install nix
  3. Install nix-darwin
  4. 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
  1. Clone this to /b
  2. Run dev update
  3. nix-channel --update
  4. export NIX_PATH=darwin-config=/b/etc/nix/darwin.nix:$NIX_PATH
  5. nix-build '<darwin>' -A installer --out-link /tmp/nix-darwin && /tmp/nix-darwin/bin/darwin-installer
  6. 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].