nixconf/flake.nix

58 lines
1.3 KiB
Nix

{
description = "Configuration v1";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-23-11.url = "github:NixOS/nixpkgs/nixos-23.11";
homeManager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
homeManager-23-11 = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs-23-11";
};
NixOS-WSL = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
cmp-vimtex = {
url = "github:micangl/cmp-vimtex/master";
flake = false;
};
spaceport-nvim = {
url = "github:CWood-sdf/spaceport.nvim/master";
flake = false;
};
};
outputs = { self, nixpkgs, homeManager, NixOS-WSL, nixpkgs-23-11, homeManager-23-11, cmp-vimtex, spaceport-nvim, ...}@inputs:
let
customPackageOverlays = [
(import ./overlays/cmp-vimtex.nix { inherit cmp-vimtex; }).overlay
(import ./overlays/spaceport.nix { inherit spaceport-nvim; }).overlay
];
in
{
nixosConfigurations = (
import ./hosts/hosts.nix {
inherit nixpkgs;
inherit homeManager;
inherit inputs;
inherit (nixpkgs) lib;
inherit NixOS-WSL;
inherit nixpkgs-23-11;
inherit homeManager-23-11;
inherit cmp-vimtex;
inherit customPackageOverlays;
}
);
};
}