feat: add wsl2 flake

This commit is contained in:
Oliver Davies 2022-09-27 07:37:57 +01:00
parent 8c281cd5d2
commit 7e03839b70
3 changed files with 29 additions and 0 deletions

View file

@ -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;
};
};
};
}

18
home-manager/wsl2.nix Normal file
View file

@ -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;
}

View file

@ -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 }}