2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-07-30 22:01:46 +00:00
|
|
|
inputs = {
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-14 09:11:03 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-03-09 18:51:11 +00:00
|
|
|
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
|
2024-03-14 23:33:00 +00:00
|
|
|
|
2024-01-24 08:32:38 +00:00
|
|
|
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
opdavies-nvim.url = "github:opdavies/opdavies.nvim";
|
2024-03-14 23:33:00 +00:00
|
|
|
# opdavies-nvim.url = "path:/home/opdavies/Code/github.com/opdavies/opdavies.nvim";
|
2023-07-30 22:01:46 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
outputs = inputs@{ flake-parts, self, ... }:
|
|
|
|
let
|
|
|
|
username = "opdavies";
|
|
|
|
|
|
|
|
mkNixos = import ./lib/nixos { inherit inputs self username; };
|
|
|
|
mkWsl = import ./lib/wsl2 { inherit inputs self username; };
|
|
|
|
in flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [ "x86_64-linux" ];
|
2024-02-24 10:21:53 +00:00
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
perSystem = { pkgs, self', ... }: {
|
|
|
|
packages.default =
|
|
|
|
pkgs.mkShell { nativeBuildInputs = [ pkgs.nixfmt pkgs.just ]; };
|
|
|
|
|
|
|
|
formatter = pkgs.nixfmt;
|
2023-05-03 23:04:02 +00:00
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
flake = {
|
2024-03-18 20:33:28 +00:00
|
|
|
lib = import ./lib { inherit inputs; };
|
2024-02-29 10:03:25 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
nixosConfigurations = {
|
2024-03-18 20:33:28 +00:00
|
|
|
apollo = mkNixos { desktop = true; };
|
|
|
|
nixedo = mkNixos { desktop = true; };
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
homeConfigurations = { wsl2 = mkWsl; };
|
2022-09-27 06:37:57 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|