dotfiles/lib/wsl2/default.nix

49 lines
918 B
Nix
Raw Normal View History

{
inputs,
self,
username,
}:
2024-03-25 11:49:33 +00:00
{ 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
;
2024-03-18 20:33:28 +00:00
};
shared-packages = import "${self}/lib/shared/home-manager-packages.nix" {
inherit inputs pkgs username;
desktop = false;
};
in
inputs.home-manager.lib.homeManagerConfiguration {
2024-03-18 20:33:28 +00:00
inherit pkgs;
extraSpecialArgs = {
inherit self;
};
2024-03-25 11:49:33 +00:00
modules = [
{
imports = [ shared-config ];
home.packages = shared-packages ++ [ pkgs.wsl-open ];
home.sessionVariables = {
2024-10-29 17:03:14 +00:00
DIRENV_LOG_FORMAT = "";
EDITOR = "nvim";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
REPOS = "$HOME/Code";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}
];
2024-03-18 20:33:28 +00:00
}