chore(flake.nix): Prefer let-in over with

Should improve readability.
This commit is contained in:
Donovan Glover 2024-04-01 11:15:07 -04:00
parent 918f0dc44a
commit dd6ab4cc97
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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