Code Monkey home page Code Monkey logo

config-nix's Introduction

Config

Configuration files for my workstations using nixos, nix-darwin and home-manager.

Requirements

Background

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

Usage

To install gaia on an Silicon Mac, run the following command:

make install_gaia

To install demeter on an Intel Mac, run the following command:

make install_demeter

To install glaucus on a new NixOS machine, run the following command:

make install_glaucus

To install apollo on a new Ubuntu machine, run the following command:

make install_apollo

To reload local changes, run the following command:

make reload

Setting up NixOS on a new machine

# 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

Notes

  • 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.

config-nix's People

Contributors

tjmaynes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.