mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 23:48:14 +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 = {
|
nixosConfigurations = {
|
||||||
nixos = nixosSystem {
|
nixos = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@ -46,8 +51,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter.x86_64-linux = nixpkgs-fmt;
|
|
||||||
} //
|
} //
|
||||||
(builtins.listToAttrs
|
(builtins.listToAttrs
|
||||||
(builtins.map
|
(builtins.map
|
||||||
|
Loading…
Reference in New Issue
Block a user