From 8c0fdb92e6d5753d4a7bd4b84eb6acd74f647421 Mon Sep 17 00:00:00 2001 From: Louis Varin Date: Tue, 16 Aug 2022 17:46:23 -0400 Subject: [PATCH] chore: Use alejandra for Nix formatting Ticket: BG-00000 --- flake.nix | 15 +++++++++++---- shell.nix | 20 ++++++++++++-------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 085bb2ff..363a535a 100644 --- a/flake.nix +++ b/flake.nix @@ -10,9 +10,14 @@ }; }; - outputs = { self, nixpkgs, flake-utils, flake-compat }: - flake-utils.lib.eachDefaultSystem - (system: + outputs = { + self, + nixpkgs, + flake-utils, + flake-compat, + }: ( + flake-utils.lib.eachDefaultSystem ( + system: ( let pkgs = nixpkgs.legacyPackages.${system}; in { @@ -28,5 +33,7 @@ ''; }; } - ); + ) + ) + ); } diff --git a/shell.nix b/shell.nix index 6234bb4d..e6d91731 100644 --- a/shell.nix +++ b/shell.nix @@ -1,10 +1,14 @@ -(import +( + import ( - let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - } + let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + in + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + } ) - { src = ./.; } -).shellNix + {src = ./.;} +) +.shellNix