refactor work-wsl

This commit is contained in:
Andreas Zweili 2022-01-20 14:14:18 +01:00
parent 02ed459475
commit 1b6895154e
3 changed files with 25 additions and 8 deletions

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
ansible_2_9
ansible-lint
];
}

View File

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

View File

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