{ inputs = { home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.url = "github:nix-community/home-manager/master"; nixpkgs-2305.url = "github:nixos/nixpkgs/nixos-23.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; outputs = inputs@{ flake-parts, self, ... }: let system = "x86_64-linux"; username = "opdavies"; nixos-system = import ./system/nixos { inherit inputs self username; }; wsl-system = import ./system/wsl2 { inherit inputs self system username; }; in flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" ]; perSystem = { pkgs, self', ... }: { packages = { opdavies-nvim = pkgs.vimUtils.buildVimPlugin { name = "opdavies-nvim"; src = ./config/neovim; }; }; formatter = pkgs.nixpkgs-fmt; }; flake = { nixosConfigurations = { nixedo = nixos-system { desktop = true; }; }; homeConfigurations = { wsl2 = wsl-system; }; }; }; }