refactor: use flake parts
This commit is contained in:
parent
967e7e7bf8
commit
32c6ee2171
16
flake.nix
16
flake.nix
|
@ -4,14 +4,21 @@
|
||||||
inputs.neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
inputs.neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs = inputs@{ home-manager, neovim-nightly, flake-parts, nixpkgs, self, ... }:
|
outputs =
|
||||||
|
inputs@{ flake-parts, home-manager, neovim-nightly, nixpkgs, self, ... }:
|
||||||
let
|
let
|
||||||
overlays = [ neovim-nightly.overlay ];
|
overlays = [ neovim-nightly.overlay ];
|
||||||
system = "x86_64-linux";
|
|
||||||
in
|
in
|
||||||
{
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
formatter.${system} = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
systems = [ "x86_64-linux" ];
|
||||||
|
|
||||||
|
perSystem = { pkgs, self', nixpkgs, ... }: {
|
||||||
|
packages.default = self'.packages.activate;
|
||||||
|
|
||||||
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
|
};
|
||||||
|
|
||||||
|
flake = {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
apollo = nixpkgs.lib.nixosSystem {
|
apollo = nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -51,4 +58,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue