dotfiles/nix/lib/wsl2/default.nix
Oliver Davies 2ed0cfbb20 Remove the old nixpkgs-unstable input
This is not needed as I'm now using unstable by default.
2024-11-21 10:49:00 +00:00

62 lines
1.1 KiB
Nix

{
inputs,
outputs,
self,
username,
}:
{ system }:
let
inherit (pkgs) lib;
pkgs = import inputs.nixpkgs {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
];
};
shared-config = import "${self}/nix/lib/shared/home-manager.nix" {
inherit
inputs
pkgs
self
username
;
};
shared-packages = import "${self}/nix/lib/shared/home-manager-packages.nix" {
inherit inputs pkgs username;
desktop = false;
};
in
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit self;
};
modules = [
{
imports = [ shared-config ];
home.packages = shared-packages ++ [ pkgs.wsl-open ];
home.sessionVariables = {
DIRENV_LOG_FORMAT = "";
EDITOR = "nvim";
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";
};
}
];
}