jjquin / nixos

NixOS Configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My NixOS configuration

Configuration for home directory and a complete NixOS system. Machine configurations are in hosts, split currently into two hosts:

  • naunau has the home workstation configuration. AMD Ryzen 3950x system with a Radeon graphics card.
  • meowmeow has the ThinkPad X230 configuration. Intel system.
  • muspus has the ThinkPad T25 configuration. Intel system.
  • purrpurr has the ThinkPad X1 Carbon configuration. Intel system.
  • munchmunch has the office workstation configuration. AMD ThreadRipper 2970wx system with a Radeon graphics card.

Notable files for reading

If looking for help and examples how to do things in Nix, or having any questions or suggestions, please file an issue and I can try to help when having some time. This setup has been my learning process for the Nix language and ecosystem, and is still changing when I find out how to do things better.

There are a few things here that I would’ve found interesting and helpful when jumping in to Nix:

New system installation

  • Use the unstable build of NixOS 21.05.
  • Boot into the installer.
  • git clone https://github.com/pimeys/nixos /tmp/nixos
  • cd /tmp/nixos && git submodule update
  • DISK=/dev/disk/by-id/... ./partition.sh
  • mv /tmp/nixos /mnt/etc/nixos
  • nixos-generate-config --root /mnt --show-hardware-config
  • Add output of the previous file to a new config in hosts
  • Add the new host to flake.nix
  • nix-shell -p git nixFlakes
  • Merge the hardware config with the dotfiles in /mnt/etc/nixos
  • Install NixOS: nixos-install --root /mnt --flake /mnt/etc/nixos#XYZ, where
  • `XYZ` is [the host you want to install](hosts/).
  • Reboot!
  • Change your root and $USER passwords!
  • chmod -R pimeys:users /etc/nixos
  • ln -s /etc/nixos /home/pimeys/.config/nixpkgs

About

NixOS Configuration


Languages

Language:Nix 85.5%Language:CSS 4.5%Language:Lua 3.8%Language:Shell 3.5%Language:Perl 1.3%Language:JavaScript 1.2%Language:Emacs Lisp 0.2%