From 0a3a2365456a9dba20ab048b3984594135d89341 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 25 Feb 2021 14:21:48 -0500 Subject: [PATCH] Add WSL --- nixpkgs/machines/wsl/config.nix | 3 +++ nixpkgs/machines/wsl/home.nix | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 nixpkgs/machines/wsl/config.nix create mode 100644 nixpkgs/machines/wsl/home.nix diff --git a/nixpkgs/machines/wsl/config.nix b/nixpkgs/machines/wsl/config.nix new file mode 100644 index 0000000..1dd1750 --- /dev/null +++ b/nixpkgs/machines/wsl/config.nix @@ -0,0 +1,3 @@ +{ + allowUnfree = true; +} diff --git a/nixpkgs/machines/wsl/home.nix b/nixpkgs/machines/wsl/home.nix new file mode 100644 index 0000000..124e742 --- /dev/null +++ b/nixpkgs/machines/wsl/home.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ../../modules/home-manager.nix + ../../modules/git.nix + ../../modules/zsh.nix + ]; + + home.packages = with pkgs; [ + neofetch + pfetch + fortune + ]; + + programs.zsh.shellAliases = { + code = "/mnt/c/Program\\ Files/Microsoft\\ VS\\ Code/Code.exe"; + }; + +} \ No newline at end of file