This is my personal NixOS configuration :). I tried to make it as customizable as possible through module system.
Some screenshots:
| Everforest Medium | Nord |
|---|---|
- Clone this repository:
export DOTFILES_PATH="$HOME/dotfiles" git clone https://github.com/deathlesz/nixos $DOTFILES_PATH cd $DOTFILES_PATH
- Create a directory for your host from a template:
export HOSTNAME=$(hostname) # or change it to something else cp -r ./hosts/__TEMPLATE ./hosts/${HOSTNAME}
- Copy your
hardware-configuration.nixthere:If you're installing NixOS from scratch, you may need to generate it. See NixOS Manual for how to do that.cp /etc/nixos/hardware-configuration.nix ./hosts/${HOSTNAME}/ - Now you may then customize it as you want. The documentation is inline with the configuration itself.
- When done, apply the configuration:
Alternatively, if you're installing NixOS:
sudo nixos-rebuild switch --flake ${DOTFILES_PATH}#${HOSTNAME}
sudo nixos-install --flake ${DOTFILES_PATH}#{HOSTNAME}
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
For more details, please see the UNLICENSE file or unlicense.org.