Skip to content
0x706bPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

Dotfiles

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.

Hosts

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.

Repository layout

configuration/ — system settings

  • 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.nix describes the desktop's hardware and filesystems.
  • WSL: NixOS-WSL integration, Windows interoperability, Docker, nix-ld and 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/ — user environment

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/, overlays/ and packages/

  • 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 and upfind.

Rebuilding

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-Pro

Review the configuration before applying it elsewhere. In particular:

  • The native Linux Home Manager imports ./home/nixos relative to home/default.nix, but the desktop module is at home/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 invokes nixos-rebuild, not darwin-rebuild.
  • Darwin Homebrew activation enables auto-update and cleanup = "zap", which can remove undeclared Homebrew packages.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages