From f55137f7ca2c4aa28b146cfd14a12f2580eb75d3 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Thu, 5 Mar 2026 15:41:39 +0000 Subject: [PATCH] tabs workaround --- AGENTS.md | 3 ++- modules/dendritic.nix | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 5b8ac26..57a07f3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -132,7 +132,8 @@ in { ### Secrets Management - Use SOPS for secrets (see `.sops.yaml`) - Never commit unencrypted secrets -- Secret definitions in `modules/secrets.nix` +- Secret definitions live in per-host modules (`modules/michael.nix`, `modules/tahani.nix`, etc.) +- Shared SOPS defaults (module imports, key paths) in `modules/secrets.nix` ### Aspect Composition Use `den.aspects..includes` to compose aspects: diff --git a/modules/dendritic.nix b/modules/dendritic.nix index 8633b96..8a54f01 100644 --- a/modules/dendritic.nix +++ b/modules/dendritic.nix @@ -4,6 +4,17 @@ (inputs.flake-file.flakeModules.dendritic or {}) ]; + # Use alejandra with tabs for flake.nix formatting (matches alejandra.toml) + flake-file.formatter = pkgs: + pkgs.writeShellApplication { + name = "alejandra-tabs"; + runtimeInputs = [pkgs.alejandra]; + text = '' + echo 'indentation = "Tabs"' > alejandra.toml + alejandra "$@" + ''; + }; + # Declare all framework and module inputs via flake-file flake-file.inputs = { den.url = "github:vic/den";