dotfiles/lib/wsl2/default.nix

30 lines
735 B
Nix
Raw Normal View History

2024-02-13 21:33:32 +00:00
{
inputs,
self,
system,
username,
}: let
2024-03-04 11:22:46 +00:00
pkgs = inputs.nixpkgs.legacyPackages.${system};
2024-03-17 00:28:38 +00:00
shared-config = import "${self}/lib/shared/home-manager.nix" {inherit inputs pkgs self username;};
shared-packages = import "${self}/lib/shared/home-manager-packages.nix" {inherit inputs pkgs;};
in
2024-02-13 21:33:32 +00:00
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2024-02-13 21:33:32 +00:00
modules = [
{
imports = [shared-config];
2024-02-13 21:33:32 +00:00
home.packages = shared-packages;
2024-02-13 21:33:32 +00:00
home.sessionVariables = {
EDITOR = "nvim";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}
];
}