Change nix formatter (#206)

the files were formatted with alejandra. the nix community has set a standard for the format and release a new tool.

Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/206
This commit is contained in:
lokthare
2026-07-06 15:53:20 +02:00
committed by ArkHost
parent 95515cac9d
commit a13d17ed81
+13 -7
View File
@@ -6,18 +6,22 @@
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
cargoToml = builtins.fromTOML (builtins.readFile ./src-tauri/Cargo.toml);
pname = cargoToml.package.name;
version = cargoToml.package.version;
in {
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
inherit pname version;
src = ./.;
@@ -44,7 +48,8 @@
wrapGAppsHook3
];
buildInputs = with pkgs;
buildInputs =
with pkgs;
lib.optionals stdenv.hostPlatform.isLinux [
webkitgtk_4_1
libayatana-appindicator
@@ -71,6 +76,7 @@
};
};
formatter = pkgs.alejandra;
});
formatter = pkgs.nixfmt;
}
);
}