Skip to content

Commit

Permalink
feat(nix): install lunarvim from nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Dec 1, 2023
1 parent 68bcb83 commit 9c966ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ wsl --import NixOS .\NixOS\ .\nixos-wsl.tar.gz --version 2

* Enter the distro:
```powershell
wsl -d NixOs
wsl -d NixOS
```

* Set up a channel:
Expand Down
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
allowUnfree = true;
permittedInsecurePackages = [
# FIXME:: add any insecure packages you absolutely need here
"python-2.7.18.6" # needed for core-utils
];
};
overlays = [
Expand Down
8 changes: 3 additions & 5 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
htop
jq
killall
lunarvim
mosh
neovim
procs
Expand All @@ -39,8 +40,6 @@
# FIXME: customize these stable packages to your liking for the languages that you use

# key tools
gnumake # for lunarvim
gcc # for lunarvim
gh # for bootstrapping
just

Expand All @@ -49,7 +48,7 @@
go
lua
nodejs
python
python3
typescript

# rust stuff
Expand Down Expand Up @@ -98,8 +97,7 @@ in {
username = "${username}";
homeDirectory = "/home/${username}";

# FIXME: set your preferred $EDITOR
sessionVariables.EDITOR = "${pkgs.neovim}/bin/nvim";
sessionVariables.EDITOR = "lvim";
# FIXME: set your preferred $SHELL
sessionVariables.SHELL = "/etc/profiles/per-user/${username}/bin/zsh";
};
Expand Down
4 changes: 4 additions & 0 deletions wsl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
}: {
networking.hostName = "${hostname}";

systemd.tmpfiles.rules = [
"d /home/${username}/.config/lvim 0755 ${username} users"
];

# FIXME: change your shell here if you don't want zsh
programs.zsh.enable = true;
environment.pathsToLink = ["/share/zsh"];
Expand Down

0 comments on commit 9c966ef

Please sign in to comment.