Something went wrong. Try again.
A nix-first approach to my computing
Something went wrong. Try again.
Files
- Nix 43%
- Lua 38%
- GLSL 19%
readme.md
Emi's configurations #
As I am getting deeper in the Nix ecosystem, I created this repo to provide myself with a sustainable foundation for all my computers, and a reference I can use when I leverage Nix at work.
Principles #
This repo leverages a few technologies to achieve its goals:
- Flakes, in order to have a lockfile, better dependency management and frankly, easier to write nix files
- Flake-parts, in order to truly modularise the configuration, their docs are also decent, not something I can confidently say of Nix proper at this point
- Import-tree, a little library that handily enables the dendritic pattern
Layout #
| Hostname | System | Description |
|---|---|---|
| Asmodeus | aarch64-linux |
Asahi personal laptop |
Installation #
To install this, run the following command:
sudo nixos-rebuild switch --flake .#<hostname>
Formatting #
Should work within your editor, but the formatter is also setup in a standard
fashion, although it is using alejandra instead of nixfmt.
nix fmt .
Development shell #
A small dev shell is available to allow quick iteration of my neovim configuration. It is accessible via:
nix shell
macOS #
This flake supports a simple home-manager setup for macOS, no nix-darwin to
be found here. To use it, run the following command:
# First invokation
nix run github:nix-community/home-manager -- switch --flake .#<username>
# After that
home-manager switch --flake .#<username>