47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
inputs = {
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
|
|
|
|
opdavies-nvim.inputs.nixpkgs.follows = "nixpkgs";
|
|
opdavies-nvim.url = "github:opdavies/opdavies.nvim";
|
|
# opdavies-nvim.url = "path:/home/opdavies/Code/personal/opdavies.nvim";
|
|
};
|
|
|
|
outputs = { nixpkgs, self, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
username = "opdavies";
|
|
|
|
mkNixos = import ./lib/nixos { inherit inputs self username; };
|
|
mkWsl = import ./lib/wsl2 { inherit inputs self username; };
|
|
|
|
inherit (pkgs) mkShell;
|
|
in {
|
|
packages.${system}.default =
|
|
mkShell { buildInputs = with pkgs; [ just ]; };
|
|
|
|
formatter.${system} = pkgs.nixfmt-classic;
|
|
|
|
nixosConfigurations = {
|
|
apollo = mkNixos {
|
|
desktop = true;
|
|
hostname = "apollo";
|
|
};
|
|
|
|
nixedo = mkNixos {
|
|
desktop = true;
|
|
hostname = "nixedo";
|
|
};
|
|
};
|
|
|
|
homeConfigurations = { wsl2 = mkWsl { system = "x86_64-linux"; }; };
|
|
};
|
|
}
|