Oliver Davies
3b890d9ee5
Create a NixOS-specific Home Manager configuration and a reusable shared configuration that can be imported and also used by other configurations, such as WSL2.
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{
|
|
inputs = {
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
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";
|
|
};
|
|
|
|
outputs = inputs@{ flake-parts, self, ... }:
|
|
let
|
|
username = "opdavies";
|
|
|
|
nixos-system = import ./system/nixos { inherit inputs username; };
|
|
wsl-system = import ./system/wsl2 { inherit inputs 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;
|
|
};
|
|
};
|
|
};
|
|
}
|