mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 15:38:12 +01:00
chore(flake.nix): Prefer let-in over with
Should improve readability.
This commit is contained in:
parent
918f0dc44a
commit
dd6ab4cc97
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user