From 857140bbd2b28cdd2e5dd0595cd625e6dc8983c1 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 26 Jul 2024 22:12:21 +0200 Subject: [PATCH] chore: switch to nixfmt --- config/services/pr-tracker.nix | 8 +++++--- flake.nix | 8 +++++--- hosts/elisabeth/secrets/pr-tracker/env.age | Bin 924 -> 897 bytes nix/devshell.nix | 9 +-------- pkgs/pr-tracker.nix | 6 +++--- .../common/programs/nvim/nixvim/plugins/lsp.nix | 4 ++-- 6 files changed, 16 insertions(+), 19 deletions(-) diff --git a/config/services/pr-tracker.nix b/config/services/pr-tracker.nix index 660e2a1..40cc06a 100644 --- a/config/services/pr-tracker.nix +++ b/config/services/pr-tracker.nix @@ -65,9 +65,11 @@ in { ExecStartPre = prestart; ExecStart = '' ${lib.getExe pkgs.pr-tracker} --url "https://pr-tracker.${config.secrets.secrets.global.domains.web}"\ - --user-agent "Patricks pr-tracker"\ - --path nixpkgs --remote origin\ - --email-white-list ${config.age.secrets.prTrackerWhiteList.path} + --user-agent "Patricks pr-tracker" \ + --path nixpkgs --remote origin \ + --email-white-list ${config.age.secrets.prTrackerWhiteList.path} \ + --email-address pr-tracker@${config.secrets.secrets.global.domains.mail_public} \ + --email-server smtp.${config.secrets.secrets.global.domains.mail_public} \ ''; EnvironmentFile = config.age.secrets.prTrackerEnv.path; diff --git a/flake.nix b/flake.nix index 2339306..c62d541 100644 --- a/flake.nix +++ b/flake.nix @@ -196,13 +196,15 @@ { src = lib.cleanSource ./.; hooks = { - alejandra.enable = true; + nixfmt = { + enable = true; + package = pkgs.nixfmt-rfc-style; + }; deadnix.enable = true; statix.enable = true; - hunspell.enable = true; }; }; devShell = import ./nix/devshell.nix inputs system; - formatter = pkgs.alejandra; + formatter = pkgs.nixfmt-rfc-style; }); } diff --git a/hosts/elisabeth/secrets/pr-tracker/env.age b/hosts/elisabeth/secrets/pr-tracker/env.age index bceaff96e8383ca50588314ca08c912755052861..09c29173872c35d0360b953fb9f5ed00f117d2b0 100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m0a>pbx_gwD) z@$mQYp4%_{_T`yhyyCJQ@M(K?)9IB{*Pncvz7n3epe+eUZ%$lc!jFjVx0g3;{iuHU z^Tmrh_PRS}=N~TY!X@gia~pr|?toc;4D%1;%jd>>E{zXeMh~oC+g3Wi-TwZom$Tyw zM|LurpP5*H?dNj~mU3~+$~U9?CwA|D3E1lY{WeL*@b3oBbo(vz$NTQtPd3jzwfn^B W&f^b+W$5T?@5R**7oAyb*TO%4rBI3h diff --git a/nix/devshell.nix b/nix/devshell.nix index 93e4db1..3973b53 100644 --- a/nix/devshell.nix +++ b/nix/devshell.nix @@ -1,7 +1,5 @@ { self, - devshell, - agenix-rekey, ... }: system: let pkgs = self.pkgs.${system}; @@ -12,11 +10,6 @@ in # Nix nil - # Lua - stylua - (luajit.withPackages (p: with p; [luacheck])) - lua-language-server - # Misc shellcheck pre-commit @@ -35,7 +28,7 @@ in help = "Edit and rekey repository secrets"; } { - package = pkgs.alejandra; + package = pkgs.nixfmt-rfc-style; help = "Format nix code"; } { diff --git a/pkgs/pr-tracker.nix b/pkgs/pr-tracker.nix index fc84974..1639909 100644 --- a/pkgs/pr-tracker.nix +++ b/pkgs/pr-tracker.nix @@ -12,11 +12,11 @@ rustPlatform.buildRustPackage { src = fetchFromGitHub { owner = "patrickdag"; repo = "pr-tracker"; - rev = "71547ae3abbfd331a890ca2d5f3572bd92c0cecc"; - hash = "sha256-Nq60EQz2TINtA4rkUsgVE4rvZ5O9otD8GXWJYPkiAhs="; + rev = "1be91285705bfdb55656db0835820cb034fe5010"; + hash = "sha256-lPhp3Jq6YM8fi0WS/fJrCHdfdQFs5vdErdE5X80WAHE="; }; - cargoHash = "sha256-pcIbL/mWhvQpQcVgyeNccW5cnHGKPKBpY9f2eeSrcjk="; + cargoHash = "sha256-9bhKtg2g5H4zGn7yVCjTazeXfeoKjtAKAlzkLkCraiw="; nativeBuildInputs = [pkg-config]; buildInputs = [openssl systemd]; diff --git a/users/common/programs/nvim/nixvim/plugins/lsp.nix b/users/common/programs/nvim/nixvim/plugins/lsp.nix index 71bcc05..b720ef7 100644 --- a/users/common/programs/nvim/nixvim/plugins/lsp.nix +++ b/users/common/programs/nvim/nixvim/plugins/lsp.nix @@ -16,7 +16,7 @@ protolint.enable = true; }; formatting = { - alejandra.enable = true; + nixfmt.enable = true; markdownlint.enable = true; shfmt.enable = true; }; @@ -57,7 +57,7 @@ nil-ls = { enable = true; settings = { - formatting.command = [(lib.getExe pkgs.alejandra) "--quiet"]; + formatting.command = [(lib.getExe pkgs.nixfmt-rfc-style) "--quiet"]; }; }; nixd.enable = true;