From a9f04dd601a10949215c21e113b816a1576d30dd Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 25 Jan 2025 23:31:54 +0000 Subject: [PATCH] Format with nixfmt-rfc-style --- flake.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 362b998dd..1a108f927 100644 --- a/flake.nix +++ b/flake.nix @@ -1,19 +1,24 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. { - description = "A Nix Flake for oliverdavies-uk"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { nixpkgs, ... }: + outputs = + { nixpkgs, ... }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = pkgs.mkShell { + buildInputs = with pkgs; [ + bashInteractive + nodePackages.pnpm + nodejs + php82 + php82Packages.composer + ]; + }; - inherit (pkgs) mkShell; - in { - devShells.${system}.default = - mkShell { buildInputs = with pkgs; [ bashInteractive nodePackages.pnpm nodejs php82 php82Packages.composer ]; }; - - formatter.${system} = pkgs.nixfmt; + formatter.${system} = pkgs.nixfmt-rfc-style; }; }