NixOS

This repository contains the the configuration files for the NixOS.


GitHub tests status GitHub deployment status Contributors The Eclipse Public License v2.0 badge GitHub commits GitHub latest commit created at badge newest release amount of languages in the repository the size of the repository

the NixOS logo

NixOS

This repository contains my configuration files for my Linux distribution of choice: NixOS. NixOS is special in the sense that it allows to configure all services, users, files, mounts, all via configuration files. Making the exact state of the system reproducible.

Pros of using NixOS

Here are some of the reasons you might want to use NixOS:

1. Reproducible

Nix builds packages in isolation from each other. This ensures that they are reproducible and don’t have undeclared dependencies, so if a package works on one machine, it will also work on another. Declarative

2. Declarative

Nix makes it trivial to share development and build environments for your projects, regardless of what programming languages and tools you’re using.

3. Reliable

Nix ensures that installing or upgrading one package cannot break other packages. It allows you to roll back to previous versions, and ensures that no package is in an inconsistent state during an upgrade.

Structure of this Repository

This repository has 2 main directories:

Here is an overview of the structure:

NixOS/
├── systems/
├── modules/
├── flake.nix
└── flake.lock

There is also the flake.nix, and flake.lock of course here at the root to make the systems completely reproducible.

The flow is as follows:

You can learn more about the structure of the systems directory, modules directory, or user directory by clicking these links.

External Resources

These resources helped me with building my own configuration file:

Name Link Explanation
NixOS Setup Guide - Configuration / Home-Manager / Flakes YouTube A good start/run down of how to make your NixOS config.
How to Start Adding Modularity to Your NixOS Config YouTube A guid to modularity. I recommend all his video's.
Nix Packages Manual ryantm's GitHub Pages Contains SO MANY useful library functions and their descriptions.