# 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: ```sh sudo nixos-rebuild switch --flake .# ``` ## Formatting Should work within your editor, but the formatter is also setup in a standard fashion, although it is using `alejandra` instead of `nixfmt`. ```sh nix fmt . ``` ## Development shell A small dev shell is available to allow quick iteration of my neovim configuration. It is accessible via: ```sh 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: ```sh # First invokation nix run github:nix-community/home-manager -- switch --flake .# # After that home-manager switch --flake .# ```