From dd6ab4cc97b0b1adc4cddcee9b1b493eda60d0fc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 1 Apr 2024 11:15:07 -0400 Subject: [PATCH] chore(flake.nix): Prefer let-in over with Should improve readability. --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 50a72a84..982fad17 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,12 @@ }; }; - outputs = { self, nixpkgs, home-manager, stylix, ... } @ attrs: with nixpkgs.lib; with nixpkgs.legacyPackages.x86_64-linux; { + outputs = { self, nixpkgs, home-manager, stylix, ... } @ attrs: let + inherit (nixpkgs.lib) nixosSystem; + inherit (nixpkgs.legacyPackages.x86_64-linux) nixpkgs-fmt callPackage; + in { + formatter.x86_64-linux = nixpkgs-fmt; + nixosConfigurations = { nixos = nixosSystem { system = "x86_64-linux"; @@ -46,8 +51,6 @@ ]; }; }; - - formatter.x86_64-linux = nixpkgs-fmt; } // (builtins.listToAttrs (builtins.map