This repository contains the system configuration for all my devices (currently one).
This configuration setup is "heavily based on" (copied from)
NOTE: There is currently no NixOS configs as this is deemed unnecessary for now as I am not using NixOS.
Run the installer script:
./bin/install-nix.sh
Some packages / brews / casks are not available in nix, so you need to install
brew
from brew.sh
Clone this repo to /mnt/etc/nixos/flake
or anywhere you like.
Add a new host to hosts/nixos.
Run the following to install the system:
sudo nixos-install --flake .#[host]
Clone this repository into ~/.system
with
git clone https://github.com/adrianchong518/system ~/.system
You can bootstrap a new nix-darwin system using
nix --extra-experimental-features "nix-command flakes" develop -c sysdo bootstrap --darwin [host]
or a home-manager configuration using
nix --extra-experimental-features "nix-command flakes" develop -c sysdo bootstrap --home-manager [host]
The sysdo
util is also developed by @kclejeune in kclejeune/system,
which I directly "yoinked" and made slight modifications.
In the future, I would most likely write my own utility to fit my needs better.
Read sysdo.md for documentation and usage.
Here are some nix system configurations that I used as reference: