Anthony Rodriguez
6d643f903c
I decided to import my custom lib as lib' as it makes it easier to read and differentiate from lib. I also removed unnecessary imports from my mkSystem function (that I actually put directly inside hosts/default.nix, as that made more sense), since system is not needed anymore (already set in hardware-configuration.nix), and the only required argument is inputs, that will be then parsed automatically by nixosSystem. |
||
---|---|---|
.. | ||
anastacia | ||
solaire | ||
vamos | ||
default.nix | ||
README.md |
💻 Hosts
This directory contains the entry points for different NixOS system configurations. Each host represents a complete system configuration, combining NixOS system settings and Home Manager configurations.
Components
default.nix
The default.nix
file in each host directory serves as the main entry point for the system configuration. It:
- Sets up NixOS configurations
- Sets up Home Manager configurations
- References host-specific module declarations
modules/
The modules/
directory contains host-specific declarations for custom modules that are defined in the flake's nixosModules
output. This so far only includes global theme / style related declarations.
Adding a New Host
- Create a new directory for the host
- Add a
hardware-configuration.nix
generated withnixos-generate-config
- Add a
default.nix
that imports the desired configurations - Create host-specific module declarations in the
modules/
subdirectory to customize the global modules as needed - Reference the new host in
hosts/default.nix