feat: add wsl2 flake
This commit is contained in:
parent
8c281cd5d2
commit
7e03839b70
3 changed files with 29 additions and 0 deletions
|
@ -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
18
home-manager/wsl2.nix
Normal 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;
|
||||
}
|
3
justfile
3
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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue