How hamburg1r/nixos works
1. This repository is a Nix flake–based NixOS configuration, centered around one primary machine profile named toaster. The repo is organized as a layered system: shared base configs, host-specific system configs, reusable modules, user-level Home Manager configs, and local package/overlay definitions.
2. The top-level composition likely comes from flake.nix, with supporting inputs locked in flake.lock. From the tree, the flake appears to assemble:
- NixOS system outputs for hosts
- Home Manager modules for user environments
- custom overlays
- custom package definitions
- an optional dev shell / auxiliary output (shell.nix, android/default)
3. System-wide NixOS settings are split between hosts/common and hosts/toaster. hosts/common contains reusable machine-level concerns such as audio, bluetooth, boot, fonts, networking, hardware/filesystem, and general package sets. hosts/toaster then specializes those for the actual device.
4. The hosts/toaster subtree is the main machine definition boundary. It breaks out boot behavior, GUI, dev tooling, gaming, language/runtime choices, login, networking, time, users, Syncthing, VM support, and host-specific package selection. That makes the host config the place where the final machine profile is assembled from smaller concerns.
5. Hardware and boot are treated as separate subdomains. Under hosts/toaster/hardware you have distinct modules for battery, CPU, disks, filesystem, GPU, and kernel; under hosts/toaster/boot you have bootloader, GRUB, and Plymouth. This separation suggests the repo is designed to support machine differences cleanly, especially across hardware and boot-time behavior.
6. There is a small reusable NixOS module layer in modules/nixos, including automount.nix and plymouth.nix. These are cross-host abstractions that can be applied to any machine, distinct from the host-specific hosts/* configs.
7. User environment management is handled through Home Manager under modules/home-manager and users/*. The modules/home-manager subtree defines reusable desktop, editor, and theme modules, while users/common and users/hamburgir define user-specific shell, GUI, theme, and specialisation settings.
8. Desktop/window manager support is a major subsystem. Under modules/home-manager/desktop there are configurations for Awesome, Hyprland, i3, Niri, and Sway. Niri gets the most detailed treatment, with separate files for binds, layout, input, output, startup, Xwayland, and debugging, which implies the desktop layer is intended to be composable and environment-specific.
9. Editor/tooling configuration is also split into reusable modules. There are parallel Home Manager stacks for nixvim and nvf, each with submodules for completion, colors, LSP, treesitter, UI, telescope, snippets, and file manager integration. This indicates editor setup is a first-class subsystem rather than an ad hoc user script collection.
10. modules/home-manager/theme and users/common/theme.nix centralize visual identity: colors, fonts, cursors, and app-specific theming for things like Hyprland, Kitty, and Tmux. Theme propagation appears to be a cross-cutting concern shared by system, desktop, and terminal configs.
11. The users/hamburgir tree is the main user profile. It separates shell behavior, GUI apps, terminal preferences, miscellaneous settings, and specialisation. The GUI subtree further splits terminal choices (ghostty, kitty, wezterm), media, social, and desktop-environment preferences, showing that the user profile owns app-level defaults while the system host owns machine-level enablement.
12. users/hamburgir/shell contains the interactive command-line environment: aliases, editor, file manager, media helpers, multiplexer, shell behavior, VCS integration, and Zellij configuration. The included Zellij layouts and themes indicate that terminal workflow is treated as a packaged workspace environment, not just a set of aliases.
13. pkgs and overlays form the repository’s customization layer for the Nix package set. There are local Vim/Neovim plugins under pkgs/vim-plugins such as autosave-nvim, journal.nvim, live-server, and tiny-code-action, which suggests the config depends on custom or patched packages that are not available upstream.
14. The main data flow is: flake inputs feed the package set and module system; hosts/common plus hosts/toaster produce the NixOS machine configuration; modules/nixos adds reusable system features; Home Manager modules under modules/home-manager and user definitions under users/* produce the per-user environment; pkgs and overlays extend the available packages used by both system and user layers.
15. Operationally, this repo is meant to be installed as a full system configuration, as shown by the README command nixos-install --flake github:h4m6urg1r#toaster. The GitHub Actions workflow likely validates the flake build, but the architecture itself is primarily local declarative system composition rather than an application server or service mesh.
Main entry points: toaster/default.nix Toaster · flake.nix Flake · home-manager/default.nix Home Manager · common/default.nix Common host
Components 25
Repository core
Flake entrypoints and composition layer.
- Flake · Top-level flake composition and outputs.
flake.nix
NixOS system
Shared machine config and host-specific machine profile.
- Common host · Shared NixOS settings reused by hosts.
hosts/common/default.nix - Boot base · Shared bootloader and EFI setup.
hosts/common/boot/default.nix - Hardware base · Shared filesystem and hardware-facing settings.
hosts/common/hardware/default.nix - Network base · Shared networking configuration.
hosts/common/network.nix - Common packages · Shared package sets for system utilities.
hosts/common/packages/default.nix - Toaster · Primary machine profile assembled from shared and local modules.
hosts/toaster/default.nix - Boot stack · Host-specific boot behavior and bootloader choices.
hosts/toaster/boot/default.nix - Hardware stack · Machine-specific CPU, GPU, disk, battery, and kernel settings.
hosts/toaster/hardware/default.nix - Host GUI · System-level desktop and graphical enablement.
hosts/toaster/gui.nix - Host dev · Development tooling and language/runtime choices.
hosts/toaster/dev.nix - Host pkgs · Host-specific package selection and overrides.
hosts/toaster/packages/default.nix
Home Manager
Reusable user-environment modules and user profiles.
- Home Manager · Reusable user-environment module composition.
modules/home-manager/default.nix - Desktop mods · Window manager and session modules.
modules/home-manager/desktop/default.nix - Editor mods · Neovim/NixVim/NVF configuration stacks.
modules/home-manager/nixvim/default.nix - Theme mods · Shared visual identity across desktop and terminal apps.
modules/home-manager/theme/default.nix - Common user · Shared shell, GUI, theme, and specialisation defaults.
users/common/default.nix - hamburgir · Primary personalized user environment.
users/hamburgir/default.nix - User shell · Interactive command-line workflow and tool preferences.
users/hamburgir/shell/default.nix - User GUI · Desktop apps, terminals, media, and social defaults.
users/hamburgir/gui/default.nix
Packages
Package overlays and local package definitions.
- Overlays · Package-set extensions and customization hooks.
overlays/default.nix - Local pkgs · Repo-local package definitions and custom plugins.
pkgs/default.nix
Connections 31
- Flake → Common host: assembles · Builds shared NixOS modules into host outputs.
- Flake → Toaster: assembles · Exports the main machine configuration.
- Flake → Home Manager: exports · Provides reusable Home Manager module composition.
- Flake → Overlays: extends · Adds package-set overlays.
- Flake → Local pkgs: provides · Makes local packages available to system and users.
- Flake → CI: validates · Runs repository checks in CI.
- Flake → Shell: exposes · Offers an auxiliary shell entrypoint.
- Flake → Android: exposes · Offers an auxiliary Android-related output.
- Common host → Boot base: includes · Shared boot and EFI settings.
- Common host → Hardware base: includes · Shared hardware and filesystem settings.
- Common host → Network base: includes · Shared networking settings.
- Common host → Common packages: includes · Shared package collection.
- Toaster → Boot stack: includes · Host-specific boot stack.
- Toaster → Hardware stack: includes · Host-specific hardware stack.
- Toaster → Host GUI: includes · Host-level graphical configuration.
- Toaster → Host dev: includes · Host-level development configuration.
- Toaster → Host pkgs: includes · Host-level package selection.
- Home Manager → Desktop mods: includes · Desktop and session modules.
- Home Manager → Editor mods: includes · Editor configuration stacks.
- Home Manager → Theme mods: includes · Shared visual theme modules.
- Home Manager → Common user: feeds · Reusable user baseline modules.
- Home Manager → hamburgir: feeds · Primary user profile modules.
- Common user → User shell: shares · Common shell behaviors reused by users.
- Common user → User GUI: shares · Common GUI behaviors reused by users.
- hamburgir → User shell: specializes · Customizes shell workflow for the primary user.
- hamburgir → User GUI: specializes · Customizes GUI and terminal apps for the primary user.
- hamburgir → Theme mods: uses · Consumes shared theme definitions.
- Toaster → Common host: builds on · Host profile starts from shared machine settings.
- Toaster → Home Manager: links user env · Integrates Home Manager into the host.
- Toaster → Overlays: consumes · Uses overlayed package definitions.
- Toaster → Local pkgs: consumes · Uses repo-local packages.