fix nix fmt

This commit is contained in:
Gerg-L 2023-12-10 20:22:27 -05:00
parent 701ee8f205
commit b1c13f4914
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
5 changed files with 7 additions and 7 deletions

View file

@ -43,7 +43,7 @@ _:
inherit (pkgs.wineWowPackages) unstableFull; inherit (pkgs.wineWowPackages) unstableFull;
inherit (pkgs.libsForQt5) kdenlive; inherit (pkgs.libsForQt5) kdenlive;
librewolf = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; }; librewolf = pkgs.librewolf.override {cfg.speechSynthesisSupport = false;};
}; };
etc = { etc = {
"jdks/17".source = "${pkgs.openjdk17}/bin"; "jdks/17".source = "${pkgs.openjdk17}/bin";

View file

@ -68,7 +68,7 @@
; ;
inherit (nvim-flake.packages) neovim; inherit (nvim-flake.packages) neovim;
inherit (self.packages) lint nixfmt; inherit (self.packages) lint nixfmt;
librewolf = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; }; librewolf = pkgs.librewolf.override {cfg.speechSynthesisSupport = false;};
}; };
etc = { etc = {
"jdks/17".source = "${pkgs.openjdk17}/bin"; "jdks/17".source = "${pkgs.openjdk17}/bin";

View file

@ -15,7 +15,7 @@ writeShellApplication {
fd fd
]; ];
text = '' text = ''
if [ -z "''${1:-""}" ]; then if [ -z "''${1:-""}" ] || [ "$1" == "." ]; then
fd '.*\.nix' . -x statix fix -- {} \; fd '.*\.nix' . -x statix fix -- {} \;
fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \; fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \;
else else

View file

@ -3,4 +3,4 @@
version = "0.6.0-${inputs.nixfmt.shortRev}"; version = "0.6.0-${inputs.nixfmt.shortRev}";
src = inputs.nixfmt; src = inputs.nixfmt;
}) })