My NixOS Configuration
This repository contains all my NixOS configurations. It uses Nix flakes to manage the configurations.
To create the hosts and modules I use the nix-library modulix.
- ./hosts: Contains the configurations for my different hosts.
- ./modules: Contains the modules for my different hosts.
- ./overlays: Contains overlays for various packages that I use.
- ./pkgs: Contains package definitions for some packages that are/were not in nixpkgs.
- ./templates: Contains templates for some flake-based projects.
To rebuild this configuration simply use this command:
rebuild
It will assume your host configuration name with the $NIX_FLAKE_DEFAULT_HOST
environment variable.
If you want, you can choose a different rebuild subcommand, you can even specify additional arguments:
rebuild boot --impure
If you encounter rate limiting while updating flake inputs, you can add your github token via ~/.config/nix/nix.conf
:
access-tokens = github.com=ghp_***
To create a new token, go to github.com/settings/tokens and click on Generate new token
.
You can find installation guides for each host in the directory of the host (e. g. ./hosts/desktop).