Oliver Davies
f93c1ba9c7
Switch back to using `nixpkgs-unstable` by default and using `nixpkgs-2305` when needed, such as for `exa` which is no longer maintained and available. In a future commit, I'll switch to `eza` which is the recommended alternative. https://github.com/eza-community/eza
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|