configuration files that power my machines
Nix 30%
Shell 17%
13%
Jsonnet 12%
Fennel 11%
Python 4%
Perl 4%
Scheme 3%
Lua 2%
Janet 2%
Clojure 1%
Ruby <1%
Dhall <1%
HTML <1%
Just <1%
Awk <1%

README.md

nix #

NixOS and home-manager configuration for the machines in this repo: furion, nixaran, impish, void, bbox and the work laptop.

Structure #

The repo splits configuration into two parts:

  • hosts/ — per-machine configuration
  • modules/ — reusable configuration:
    • services/ — service definitions
    • mixins/ — shared dotfiles and user configuration

Usage #

Run commands through just. It wraps the common Nix operations:

# validate the flake
nix flake check

# apply the home-manager configuration
nh home switch "<repo-path>"

# deploy to a remote host
NH_ELEVATION_STRATEGY=none nh os switch . --hostname <host> --target-host root@<host> --build-host root@<host>

# update flake.lock
nix flake update

# clean up the nix store
nix-store --gc
nix-collect-garbage -d