Skip to content

BuriedInTheGround/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-config

NixOS unstable

My NixOS system+user configuration. Powered by Nix, Nix Flakes, Home Manager, and passion.

My Setup

What Is What I Use
Browser Firefox
DM LightDM with Mini-Greeter
Editor Neovim
Launcher Rofi
Shell Zsh with Zgen
Status Bar Polybar
Terminal Alacritty + tmux
WM bspwm

Quickstart

Note: the optional steps are needed to set up a custom configuration and are highly recommended (mainly because you probably have different hardware than mine, and you also probably want to customize the system to your own needs).

Note 2: the commands in the following steps should be considered to be run as root (e.g. using sudo).

  1. Download and boot the latest build of NixOS 21.05.
  2. Partition as you like and mount your root to /mnt (see the manual).
  3. (Optional) Generate an initial configuration as stated in the manual, using
nixos-generate-config --root /mnt
  1. (Optional) Temporarely move the files generated in /mnt/etc/nixos somewhere else.
  2. Start a nix-shell with
nix-shell -p git nixFlakes
  1. Clone this repo with
git clone https://github.com/BuriedInTheGround/nixos-config.git /mnt/etc/nixos
  1. Fix some paths with
mv /etc/nixos /etc/nixos.bak
ln -s /mnt/etc/nixos /etc/nixos
  1. (Optional) Create a sub-directory inside hosts/ with the name you want for your host.
  2. (Optional) Put the files you moved in (4) into your host folder.
  3. (Optional) Rename hosts/<your-hostname>/configuration.nix to hosts/<your-hostname>/default.nix.
  4. (Optional) Customize hosts/<your-hostname>/default.nix by adding modules and NixOS settings.
  5. (Optional) Set your username by changing my default ("simone") in modules/options.nix.
  6. (Optional) Add your changes with git (mandatory if you actually made changes), e.g.
git add hosts/<your-hostname>
git add modules/options.nix
  1. Install NixOS with
nixos-install --root /mnt --flake /mnt/etc/nixos#<your-hostname> --impure
  1. (Optional) Use nixos-enter to setup some files or folders in advance.
  2. Reboot.
  3. Change your root and user password.
  4. Enjoy your system! 🌸