1
1
Fork 0

nix: switch to alejandra formatter

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-11 18:15:35 -05:00
parent 17b699964c
commit 29972bf2d8
Signed by: myned
GPG key ID: C7224454F7881A34
3 changed files with 5 additions and 3 deletions

View file

@ -101,8 +101,10 @@
outputs = inputs: {
# TODO: Use forAllSystems
# FIXME: nixd always uses nixfmt when importing flakes
# https://nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-fmt
formatter.x86_64-linux = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.nixfmt-rfc-style;
# https://github.com/kamadorueda/alejandra/blob/main/STYLE.md
formatter.x86_64-linux = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.alejandra;
nixosConfigurations =
let

View file

@ -67,9 +67,9 @@ in
home = {
# Extension dependencies
packages = with pkgs; [
alejandra # nix-ide
blueprint-compiler # blueprint-gtk
nixd # nix-ide
nixfmt-rfc-style # nix-ide
shfmt # shell-format
];

View file

@ -26,11 +26,11 @@ in
# CLI applications
config.boot.kernelPackages.cpupower # Install for current kernel
alejandra
fd
fzf
jq
lm_sensors # sensors
nixfmt-rfc-style # nixfmt
nix-output-monitor # nom
nix-tree
nmap