nix: switch to alejandra formatter
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
17b699964c
commit
29972bf2d8
3 changed files with 5 additions and 3 deletions
|
@ -101,8 +101,10 @@
|
||||||
|
|
||||||
outputs = inputs: {
|
outputs = inputs: {
|
||||||
# TODO: Use forAllSystems
|
# TODO: Use forAllSystems
|
||||||
|
# FIXME: nixd always uses nixfmt when importing flakes
|
||||||
# https://nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-fmt
|
# 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 =
|
nixosConfigurations =
|
||||||
let
|
let
|
||||||
|
|
|
@ -67,9 +67,9 @@ in
|
||||||
home = {
|
home = {
|
||||||
# Extension dependencies
|
# Extension dependencies
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
alejandra # nix-ide
|
||||||
blueprint-compiler # blueprint-gtk
|
blueprint-compiler # blueprint-gtk
|
||||||
nixd # nix-ide
|
nixd # nix-ide
|
||||||
nixfmt-rfc-style # nix-ide
|
|
||||||
shfmt # shell-format
|
shfmt # shell-format
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,11 @@ in
|
||||||
# CLI applications
|
# CLI applications
|
||||||
config.boot.kernelPackages.cpupower # Install for current kernel
|
config.boot.kernelPackages.cpupower # Install for current kernel
|
||||||
|
|
||||||
|
alejandra
|
||||||
fd
|
fd
|
||||||
fzf
|
fzf
|
||||||
jq
|
jq
|
||||||
lm_sensors # sensors
|
lm_sensors # sensors
|
||||||
nixfmt-rfc-style # nixfmt
|
|
||||||
nix-output-monitor # nom
|
nix-output-monitor # nom
|
||||||
nix-tree
|
nix-tree
|
||||||
nmap
|
nmap
|
||||||
|
|
Loading…
Reference in a new issue