My NixOS configuration with Nix Flakes, Home Manager, Stylix, and Hyprland.
Go to file
Donovan Glover 95b10ec3ef
meta: Begin writing tests in Nix
Now that I've figured out how to dynamically import modules and use
those modules as outputs, the next step is to ensure that these modules
work as intended when being used by end users.

NixOS offers a built-in testing solution that enables us to conveniently
spin up virtual machines with a given configuration, then verify their
correctness through python scripting.

The lib.nix file in particular is based on Jörg Thalheim's very useful
blog post that explains how to use the built-in testing functionality
with Nix flakes, which isn't covered in official documentation.

See: https://blog.thalheim.io/2023/01/08/how-to-use-nixos-testing-framework-with-flakes/
2024-04-02 05:20:42 -04:00
.github meta: Drop deno tests 2024-04-01 09:31:51 -04:00
assets eww: Inline config 2023-08-11 15:05:24 -04:00
containers meta: Make containers a nixosModule 2024-04-01 06:24:52 -04:00
hardware meta: Drop default hardware 2024-04-01 04:33:47 -04:00
home neovim: Add syntax highlighting for glsl 2024-04-01 19:45:22 -04:00
modules dual-function-keys: Change KEY_GRAVE to right alt 2024-04-01 19:43:42 -04:00
overlays meta: Switch to upstream stylix 2024-04-01 05:35:27 -04:00
packages meta(nix): Automatically import all packages 2024-04-01 04:25:44 -04:00
patches overlays(kitty): Patch wlroots copying bug 2024-03-30 15:12:40 -04:00
specializations meta: Make specializations a nixosModule 2024-04-01 06:27:08 -04:00
tests meta: Begin writing tests in Nix 2024-04-02 05:20:42 -04:00
.gitignore Update .gitignore 2023-05-10 22:19:36 -04:00
cover.jpg docs: Add new cover image 2023-09-12 16:09:08 -04:00
flake.lock meta: Switch to upstream stylix 2024-04-01 05:35:27 -04:00
flake.nix meta: Begin writing tests in Nix 2024-04-02 05:20:42 -04:00
LICENSE chore: Update LICENSE 2024-01-02 18:19:51 -05:00
README.md docs: Add new cover image 2023-09-12 16:09:08 -04:00

nix-config

My NixOS configuration with Nix Flakes, Home Manager, Stylix, and Hyprland.

A screenshot of Pepper looking earnestly at declaratively configured Git abbreviations for the fish shell, written in Nix. Background art: The market, In Bloom and Vertical cover book two screen by David Revoy CC-BY 4.0.

A screenshot of a Rust programming environment with Neovim, kitty, and bacon. Background art: Video game jam by David Revoy CC-BY 4.0.

Features

  • Clean, readable code that can be easily modified to add/remove things as needed.
  • Fully reproducible and declarative environment thanks to NixOS.
  • Reasonably secure containers isolated from your personal files and network.
  • Nix Flakes + Home Manager + Btrfs on LUKS.
  • Simple yet effective Neovim setup with nvim-lspconfig.
  • Modern Wayland support with Hyprland and the master-stack layout.
  • Full Japanese support with fonts, input method, and wine covered.
  • Specializations for easy switching between Hyprland, GNOME, and Plasma.
  • A universal color scheme inherited by all applications.

Usage

git clone https://github.com/donovanglover/nix-config && cd nix-config
nixos-rebuild build-vm --flake .#nixos
./result/bin/run-nixos-vm

The code base is designed to be small so it's easy to adjust things as needed. Have fun!