No description
- Nix 91.7%
- Just 3.4%
- CSS 3.4%
- Shell 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .githooks | ||
| certs | ||
| docs | ||
| home/pti | ||
| hosts/mercurius | ||
| modules | ||
| pkgs | ||
| secrets | ||
| templates/devshell | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| IDEAS.md | ||
| justfile | ||
| README.md | ||
| statix.toml | ||
| TODO.md | ||
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.