dotfiles/lib/wsl2/default.nix

58 lines
1.1 KiB
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-10-29 18:00:00 +00:00
inherit (pkgs) lib;
pkgs = import inputs.nixpkgs {
overlays = [ (import "${self}/overlays/vim-plugins-overlay.nix") ];
};
2024-03-04 11:22:46 +00:00
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";
2024-10-29 18:00:00 +00:00
PATH = lib.concatStringsSep ":" [
"$PATH"
"$HOME/go/bin"
"./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
}