-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsl2-home.nix
50 lines (42 loc) · 1.12 KB
/
wsl2-home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ pkgs, lib, nixpkgs, ... }:
let
oxalica-rust = fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
in
{
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz;
}))
(import oxalica-rust)
];
imports = [
./shared/bash.nix
./shared/fzf.nix
./shared/git.nix
./shared/starship.nix
./shared/vim.nix
./shared/nvim.nix
./shared/emacs.nix
];
# We want the non-gui emacs version.
programs.emacs.package = pkgs.emacs-nox;
home.packages = with pkgs; [
# WSL2 specific packages here.
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rustfmt"];
})
# (rust-bin.selectLatestNightlyWith (toolchain:
# toolchain.default.override {
# extensions = [ "rust-analyzer" "rust-src" "rustfmt" ];
# }))
] ++ (import ./shared/pkgs.nix pkgs);
home.sessionVariables = {
EDITOR = "vim";
NON_NIX_OS = true;
};
programs.home-manager = {
enable = true;
path = "…";
};
}