1
Files
flake-nixinator/README.md
2025-11-24 17:21:04 +01:00

51 lines
2.0 KiB
Markdown

# NixOS Configuration
Modular NixOS configuration, using Hyprland (yikes) or Niri for a tiling/scrolling desktop.
![](FastFetch.png)
<p float="left" align="middle">
<img src="/NeoVim.png" width="33%" />
<img src="/Rmpc.png" width="33%" />
<img src="/Btop.png" width="33%" />
</p>
![](Niri.png)
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
Alternatively, use `nh os switch` or `nh os boot`.
## NixFlake/system
Contains all the system configurations.
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
- System modules are located in `NixFlake/system/modules`
- Hosted services are located in `NixFlake/system/services`
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
## NixFlake/home
Contains all the home-manager configurations.
- There is a common configuration for each user: `NixFlake/home/<username>/default.nix`
- There is a configuration for a single system of this user: `NixFlake/home/<username>/<hostname>/default.nix`
- Home-Manager modules are located in `NixFlake/home/modules`
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
## NixFlake/derivations
Contains all the stuff I packaged.
Each derivation is loaded into `NixFlake/derivations/default.nix`.
## NixFlake/overlays
Contains all overlays, e.g. package version overrides.
The `NixFlake/overlays/default.nix` imports all overlays and all derivations.
It is then imported by the top-level `NixFlake/flake.nix`, to make everything available to the system/home configurations.