refactor: flake.nix
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -6,12 +6,13 @@
|
||||
};
|
||||
outputs = { nixpkgs, fenix, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
||||
in
|
||||
{
|
||||
formatter.${system} = pkgs.nixpkgs-fmt;
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
devShells = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; }; in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
zsh
|
||||
(fenix.packages.${system}.complete.withComponents [
|
||||
@@ -23,10 +24,8 @@
|
||||
"rust-analyzer"
|
||||
])
|
||||
];
|
||||
shellHook = ''
|
||||
zsh & disown
|
||||
exit
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user