No description
  • Nix 91.7%
  • Just 3.4%
  • CSS 3.4%
  • Shell 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-14 16:04:50 +01:00
.githooks Add pre-commit hook that checks Nix formatting 2026-10-13 20:36:57 +02:00
certs Trust the Snamellit root CA system-wide, in LibreWolf and Chromium 2026-10-14 14:30:58 +02:00
docs update dev tools 2026-10-30 09:20:50 +01:00
home/pti Configure mail tools and Gmail synchronization 2026-11-03 09:21:27 +01:00
hosts/mercurius Automount NAS shares for pti 2026-11-14 16:04:50 +01:00
modules Automount NAS shares for pti 2026-11-14 16:04:50 +01:00
pkgs Add FOrcaSlicer for Snapmaker U1 2026-11-14 15:32:47 +01:00
secrets Automount NAS shares for pti 2026-11-14 16:04:50 +01:00
templates/devshell Drop the global C toolchain in favour of per-project devShells 2026-10-13 20:52:27 +02:00
.envrc Add repository development and lint tooling 2026-11-03 09:21:10 +01:00
.gitignore Add repository development and lint tooling 2026-11-03 09:21:10 +01:00
flake.lock Install Herdr desktop and core 2026-11-14 15:32:44 +01:00
flake.nix Install Herdr desktop and core 2026-11-14 15:32:44 +01:00
IDEAS.md IDEAS: drop the audio stream logging idea 2026-10-16 09:48:32 +02:00
justfile Add repository development and lint tooling 2026-11-03 09:21:10 +01:00
README.md Add repository development and lint tooling 2026-11-03 09:21:10 +01:00
statix.toml Add repository development and lint tooling 2026-11-03 09:21:10 +01:00
TODO.md Add repository development and lint tooling 2026-11-03 09:21:10 +01:00

NixOS configuration

Git-managed NixOS and Home Manager configuration for this machine.

Layout

flake.nix
hosts/mercurius/configuration.nix
hosts/mercurius/hardware-configuration.nix
hosts/mercurius/disko.nix          # disk layout (LUKS + btrfs subvolumes)
home/pti/home.nix
modules/nixos/common.nix
modules/home/*.nix
modules/home/niri/config.kdl   # Niri config, edit here (see docs/architecture.md)

Repository tools

Run direnv allow once per clone to load the flake's development shell when entering this directory. It provides just, nom, statix, and deadnix without requiring a system switch first.

Without direnv, use nix develop, or run a command directly:

nix develop -c just lint
nix develop -c just switch

The switch command activates the configuration and requires sudo.

Validate

Enable the formatting pre-commit hook once per clone with just hooks.

nix flake check
nixos-rebuild build --flake .#mercurius

Activate

Activation changes the running system and should be done intentionally:

sudo nixos-rebuild switch --flake .#mercurius

Home Manager is integrated as a NixOS module, so the command above applies both system and home configuration.