dotfiles/lib/wsl2/default.nix

32 lines
762 B
Nix
Raw Normal View History

2024-03-25 11:49:33 +00:00
{ inputs, self, username }:
{ system }:
2024-03-18 20:33:28 +00:00
let
2024-03-04 11:22:46 +00:00
pkgs = inputs.nixpkgs.legacyPackages.${system};
2024-03-18 20:33:28 +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 inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2024-03-25 11:49:33 +00:00
extraSpecialArgs = { inherit self; };
2024-03-18 20:33:28 +00:00
modules = [{
imports = [ shared-config ];
2024-03-18 20:33:28 +00:00
home.packages = shared-packages;
2024-03-18 20:33:28 +00:00
home.sessionVariables = {
EDITOR = "nvim";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
2024-04-16 23:24:41 +00:00
REPOS = "$HOME/Code";
2024-03-18 20:33:28 +00:00
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}];
}