Personal Nix flake for system configuration and Home Manager. It defines a NixOS desktop, a NixOS-WSL environment, and an Apple Silicon macOS system. The configurations assume the user peter and include machine-specific settings.
| Flake output | System configuration | Home Manager configuration |
|---|---|---|
nixos |
configuration/nixos/ |
home/default.nix, with desktop modules |
nixos-wsl |
configuration/nixos-wsl/ |
home/default.nix, with WSL-specific imports |
MacBook-Pro |
configuration/darwin/ |
home/darwin/ |
flake.nix defines the hosts and inputs; flake.lock pins the inputs. Home Manager is integrated into each system configuration.
- NixOS: Limine with a Windows boot entry, NVIDIA graphics, Hyprland and SDDM, PipeWire with virtual audio devices, Stylix, NetworkManager, OpenSSH, Flatpak, OpenRGB and Steam.
hardware-configuration.nixdescribes the desktop's hardware and filesystems. - WSL: NixOS-WSL integration, Windows interoperability, Docker,
nix-ldand OpenSSH with key authentication. The configuration also adds a Windows VS Code path and WSL-specific package overlays. - Darwin: nix-darwin, Zsh, Homebrew packages and apps, macOS dock and keyboard preferences, and an activation script for Nix applications.
home/default.nix configures the shared Linux shell, development tools, runtimes and applications. It selects desktop modules for native NixOS and a VS Code server module for WSL. home/nixos/ adds desktop applications, audio and gaming tools, and font settings. home/darwin/ defines a separate macOS user environment.
home/modules/ contains application configuration:
- Neovim: Lua configuration and plugins for completion, language servers, navigation, Git and AI tools.
- Desktop: Hyprland, Waybar, wallpaper, launcher, notifications and related Wayland utilities.
- Terminal and shell: Kitty, WezTerm, tmux, Zellij, Starship, Yazi and npm.
- Other applications: Git, VS Code, VS Code server, Warp and Yabai.
Some modules link directly to files in the checkout rather than copying them into the Nix store. Not every module is imported by every host.
modules/steam/enables Steam and Gamescope on the NixOS desktop.overlays/includes access to stable nixpkgs, a Modrinth wrapper, a Docker Sandboxes version override, and Brotli and Node.js overrides. The Brotli and Node.js overlays are not currently imported by the host configurations. Host configurations also use overlays from flake inputs.packages/contains local derivations for PragmataPro, Starship andupfind.
Select the appropriate host explicitly:
sudo nixos-rebuild switch --flake .#nixos
# or, on WSL:
sudo nixos-rebuild switch --flake .#nixos-wsl
# or, on macOS with nix-darwin installed:
sudo darwin-rebuild switch --flake .#MacBook-ProReview the configuration before applying it elsewhere. In particular:
- The native Linux Home Manager imports
./home/nixosrelative tohome/default.nix, but the desktop module is athome/nixos/. - The PragmataPro derivation references a local font archive that is absent from this checkout.
- Some application links use hard-coded user and checkout paths. The Darwin
rebuild.alias invokesnixos-rebuild, notdarwin-rebuild. - Darwin Homebrew activation enables auto-update and
cleanup = "zap", which can remove undeclared Homebrew packages.