diff --git a/flake.nix b/flake.nix index 977f92b..e62af6d 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,14 @@ ]; pkgs = nixpkgs.legacyPackages.x86_64-linux; }; + + wsl2 = home-manager.lib.homeManagerConfiguration { + modules = [ + { nixpkgs.overlays = overlays; } + ./home-manager/wsl2.nix + ]; + pkgs = nixpkgs.legacyPackages.x86_64-linux; + }; }; }; } diff --git a/home-manager/wsl2.nix b/home-manager/wsl2.nix new file mode 100644 index 0000000..45d0b44 --- /dev/null +++ b/home-manager/wsl2.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./modules/git.nix + ./modules/home-manager.nix + ./modules/tmux.nix + ./modules/zsh.nix + ]; + + home.packages = with pkgs; [ + just + neovim + zsh + ]; + + programs.bat.enable = true; +} diff --git a/justfile b/justfile index ba1fc55..7eb763e 100644 --- a/justfile +++ b/justfile @@ -3,3 +3,6 @@ default: pop-os *args: home-manager switch -f home-manager/home.nix --flake .#pop-os {{ args }} + +wsl2 *args: + home-manager switch -f home-manager/home.nix --flake .#wsl2 {{ args }}