my nixos system configuration
assets | ||
hosts | ||
lib | ||
modules | ||
secrets | ||
shared/pkgs | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
nodes.nix | ||
README.md | ||
treefmt.nix |
flocon
My NixOS configurations, using flakes.
🛠️ Structure
Name | Description |
---|---|
assets | Resources used throughout the system (images etc.) |
hosts | Host-specific |
modules | Local module system (where the bulk of the configurations lives) |
shared | Exported components (library functions, custom derivations...) |
My configuration is structured based on the following principles:
- Hosts should be the main entry points and outputs.
- Abstractions should be avoided as much as possible.
- Setting up theming should be as simple as changing one or two options.
The main configuration can be found in modules, which declares most of my programs and services.
My hosts can then pick and choose the programs and configurations that they need from the local module system, which have its options declared in modules/options for easy reference.
👥 Credits
People / repositories I have copied / learned from:
- fufexan/dotfiles for the configuration structure
- jacekpoz/nixos for learning how NixOS modules work
- sodiboo for helping me a whole lot with Niri-specific issues
- llakala for being very thorough and helpful when cleaning up my code and general structure.
- Lunarnovaa for her hjem configuration and functions, that I used when switching away from home-manager.
Some bits have also been borrowed from within the configuration, and credit has been given where its due.