Nix setup for the machine nil
This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
James Patrick caaeb92c4a Switched from alacritty to kitty.
alacritty is nice but kitty works about as well and has as many
features. I've been using kitty for a long time on my other laptop and
added here because it's what is typically suggested.
2021-11-28 17:17:44 -05:00
hosts Refactored into flake 2021-11-27 20:10:36 -05:00
modules Switched from alacritty to kitty. 2021-11-28 17:17:44 -05:00
.env_sample Added README & sample .env 2021-11-15 11:58:15 -05:00
.gitignore Refactored into flake 2021-11-27 20:10:36 -05:00
configuration.nix Refactored into flake 2021-11-27 20:10:36 -05:00
flake.lock Refactored into flake 2021-11-27 20:10:36 -05:00
flake.nix Refactored into flake 2021-11-27 20:10:36 -05:00
home.nix Refactored into flake 2021-11-27 20:10:36 -05:00
makefile Added install nix to nix_install 2021-11-15 09:54:02 -05:00
readme.md Added references documentation 2021-11-15 20:39:33 -05:00

Nil Install Guide

This is the nix configuration for a 2021 Thinkpad T14 AMD g2 machine named nil.

The boot media looks like

NAME                          TYPE     MOUNTPOINT
nvme0n1                       disk
├─nvme0n1p1                   part     /boot
└─nvme0n1p2                   part
  └─crypt                     crypt    /dev/mapper/root
    └─partitions              lvm
      ├─swap                  swap     /dev/partitions/swap
      └─lvm_root              lvm      /dev/partitions/lvm_root
        └─rpool               zpool
          ├─rpool/root        zfs
          ├─rpool/root/nixos  zfs      /
          └─rpool/home        zfs      /home

Install

A makefile is used for ease of use. To set this up on a new machine you will need the following:

nix-env -iA nixos.gnumake
nix-env -iA nixos.git

then checkout this repo, create & modify the .env file

git clone https://git.jpatrick.io/james/nil.git /tmp/install
cd /tmp/install
cp .env_sample .env

Once you have set the PASSPHRASE & DISK vars run

sudo make nix_install

TODO

  • Document setting the networking.hostId variable.
  • Use NixOS Hardware Modules.
  • Fix wireless driver issue :: This uses the Realtek 8852AE 802.11AX WWAN.

References