refactor work-wsl
This commit is contained in:
parent
02ed459475
commit
1b6895154e
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ansible_2_9
|
||||
ansible-lint
|
||||
];
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
username = import ../../username.nix;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
vagrant
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
sessionVariables = {
|
||||
VAGRANT_WSL_ENABLE_WINDOWS_ACCESS = 1;
|
||||
PATH = "$PATH:/mnt/c/Program Files/Oracle/VirtualBox";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,11 +5,9 @@ in
|
|||
{
|
||||
imports = [
|
||||
./common
|
||||
./software/ansible-2-9
|
||||
./software/git
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vagrant
|
||||
./software/vagrant-wsl
|
||||
];
|
||||
|
||||
programs.git.userEmail = "zweili@contria.com";
|
||||
|
@ -20,9 +18,5 @@ in
|
|||
. ~/.nixos/home-manager/configs/bash/work_wsl_bashrc
|
||||
. /home/${username}/.nix-profile/etc/profile.d/nix.sh
|
||||
'';
|
||||
sessionVariables = {
|
||||
VAGRANT_WSL_ENABLE_WINDOWS_ACCESS = 1;
|
||||
PATH = "$PATH:/mnt/c/Program Files/Oracle/VirtualBox";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue