Nix setup for the machine `nil`
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
James Patrick f5282d3368 Required for reading journalctl --user. 2 months ago
home Firefox is now working. On to the next thing 2 months ago
hosts Firefox is now working. On to the next thing 2 months ago
modules Required for reading journalctl --user. 2 months ago
.env_sample Added README & sample .env 2 months ago
.gitignore Refactored into flake 2 months ago
flake.lock Refactored into flake 2 months ago
flake.nix Firefox is now working. On to the next thing 2 months ago
home.nix Updated base packages too add killall. 2 months ago
makefile Added install nix to nix_install 2 months ago
readme.md Added references documentation 2 months ago

readme.md

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