feat: remove inherit and rec
This commit is contained in:
parent
c629b3fdf4
commit
2d5421d73d
1 changed files with 3 additions and 7 deletions
10
flake.nix
10
flake.nix
|
@ -6,6 +6,7 @@
|
|||
self,
|
||||
}: let
|
||||
pkgs = nixpkgs;
|
||||
lib = pkgs.lib;
|
||||
|
||||
mkAllSystems = lib.genAttrs [
|
||||
"aarch64-darwin"
|
||||
|
@ -14,17 +15,13 @@
|
|||
"x86_64-darwin"
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
inherit (pkgs) lib;
|
||||
in {
|
||||
formatter = mkAllSystems (system: pkgs.legacyPackages.${system}.alejandra);
|
||||
|
||||
devShells = mkAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
in rec {
|
||||
default = mkShell {
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
nativeBuildInputs = [pkgs.dnscontrol];
|
||||
|
||||
shellHook =
|
||||
|
@ -48,4 +45,3 @@
|
|||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue