Configuration files for my workstations using
nixos,nix-darwinandhome-manager.
| Host | Usage | Tools | Status |
|---|---|---|---|
| apollo | ubuntu dev workstation | ubuntu / home-manager | ✅ |
| glaucus | full nixos dev workstation | nixos / home-manager | ✅ |
| gaia | macos apple silicon (personal) workstation | nix-darwin / home-manager | ✅ |
| demeter | macos intel (personal) workstation | nix-darwin / home-manager | ✅ |
To install gaia on an Silicon Mac, run the following command:
make install_gaiaTo install demeter on an Intel Mac, run the following command:
make install_demeterTo install glaucus on a new NixOS machine, run the following command:
make install_glaucusTo install apollo on a new Ubuntu machine, run the following command:
make install_apolloTo reload local changes, run the following command:
make reload# login as root
sudo -i
# download repo
curl -SL https://github.com/tjmaynes/config/archive/master.tar.gz | tar xz
cd config-main
# download dotfiles
rm -rf dotfiles
curl -SL https://github.com/tjmaynes/dotfiles/archive/master.tar.gz | tar xz
mv dotfiles-main dotfiles
# Cannot create partitions through automation
# -- too much headache and bugs with parted
parted /dev/sda
mklabel gpt
mkpart "BOOT" fat32 1MiB 3MiB \
set 1 esp on
mkpart "root" ext4 1000MiB ${NIX_PARTITION}000MiB
mkpart "swap" linux-swap ${NIX_PARTITION}000MiB 100% \
set 3 swap on
# run installer
./scripts/install.sh "glaucus" "nixos" "tjmaynes"
# change password
passwd "tjmaynes"
# reboot
reboot
# login as user in GUI
# open terminal
ctrl+enter
# create new keys
ssh-keygen -t ed25519 -C "your-email"
cat ~/.ssh/id_ed25519.pub | pbcopy
# clone config repo
pclone config
make install_glaucus- I learned quite a bit of NixOS-specific concepts from Malloc47's config repo.
- Learning how to setup nextcloud on NixOS via this blog post.