dotfiles/lib/wsl2/default.nix
Oliver Davies 4ddd317c6c Add xdg-utils and wsl-open
Add `xdg-utils` to add functions like `xdg-open` to run commands such
as `mob timer open` and have them open a browser.

Also add `wsl-open` so this works within WSL.
2024-06-18 12:32:47 +01:00

44 lines
849 B
Nix

{
inputs,
self,
username,
}:
{ system }:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
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;
extraSpecialArgs = {
inherit self;
};
modules = [
{
imports = [ shared-config ];
home.packages = shared-packages ++ [ pkgs.wsl-open ];
home.sessionVariables = {
EDITOR = "nvim";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
REPOS = "$HOME/Code";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}
];
}