2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-05-03 21:41:33 +00:00
|
|
|
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.url = "github:nix-community/home-manager";
|
|
|
|
inputs.neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
outputs =
|
|
|
|
inputs@{ flake-parts, home-manager, neovim-nightly, nixpkgs, self, ... }:
|
2023-05-03 21:19:59 +00:00
|
|
|
let
|
|
|
|
overlays = [ neovim-nightly.overlay ];
|
|
|
|
in
|
2023-05-03 23:04:02 +00:00
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [ "x86_64-linux" ];
|
2022-10-02 22:42:33 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
perSystem = { pkgs, self', nixpkgs, ... }: {
|
|
|
|
packages.default = self'.packages.activate;
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
flake = {
|
|
|
|
nixosConfigurations = {
|
|
|
|
apollo = nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [
|
|
|
|
{ nixpkgs.overlays = overlays; }
|
|
|
|
|
|
|
|
./system/nixos/apollo/configuration.nix
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.opdavies = import ./home-manager/apollo.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixedo = nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [
|
|
|
|
{ nixpkgs.overlays = overlays; }
|
|
|
|
|
|
|
|
./system/nixos/nixedo/configuration.nix
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.opdavies = import ./home-manager/nixedo.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
wsl2 = home-manager.lib.homeManagerConfiguration {
|
|
|
|
modules = [{ nixpkgs.overlays = overlays; } ./system/wsl2.nix];
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|