2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-07-30 22:01:46 +00:00
|
|
|
inputs = {
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-10-03 22:04:08 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
2023-07-30 22:01:46 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2023-08-07 21:27:54 +00:00
|
|
|
outputs = inputs@{ flake-parts, self, ... }:
|
|
|
|
let
|
2023-08-09 20:43:47 +00:00
|
|
|
system = "x86_64-linux";
|
2023-08-07 21:27:54 +00:00
|
|
|
username = "opdavies";
|
|
|
|
|
2023-11-06 23:24:53 +00:00
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
|
|
|
|
|
|
nixos-system = import ./system/nixos { inherit inputs pkgs self system username; };
|
|
|
|
wsl-system = import ./system/wsl2 { inherit inputs pkgs self system username; };
|
2023-08-07 21:27:54 +00:00
|
|
|
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-08-07 21:27:54 +00:00
|
|
|
perSystem = { pkgs, self', ... }: {
|
2023-08-07 08:43:48 +00:00
|
|
|
packages = {
|
|
|
|
opdavies-nvim = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "opdavies-nvim";
|
|
|
|
src = ./config/neovim;
|
|
|
|
};
|
|
|
|
};
|
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 = {
|
2023-08-08 19:15:31 +00:00
|
|
|
nixedo = nixos-system { desktop = true; };
|
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 = {
|
2023-08-07 21:27:54 +00:00
|
|
|
wsl2 = wsl-system;
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|