This config works both on my wsl (Ubuntu 20.05) and my desktop computer (EndeavourOS).
I'm sorry that I can't find a very nix way to install spacemacs. Thus, in this config, spacemacs is installed through standard way. Luckily, Both spacemacs and lunarvim use a declarative way to store the config file, making it not very ugly.
- Input Method: fcitx5-rime
- Editor: Emacs (spacemacs), VSCode
- shell: zsh
- terminal: Kitty
- VPN Client: clash-nyanpasu
-
Install nixOS
-
Clone the repository to
~/.dotfiles
-
run these shell command
cd ~/.dotfiles
git add .
sudo nixos-rebuild switch --flake ~/.dotfiles#username
home-manager switch --flake ~/.dotfiles"
-
install Spacemacs
-
Have fun!
-
Install your OS
-
Install Nix(Single-User Installatioin)
-
Edit
/etc/nix/nix.conf
(if the file does not exist, create it)sudo vim /etc/nix/nix.conf
add one line:
add one line:
experimental-fetures = nix-command flakes
- install asdf
I use asdf to manage my development environment
use
asdf.sh
in mymyScript
Directory.
Install fcitx5
fcitx-im
fcitx
fcitx5-rime
fcitx5-configtool
fcitx5-qt
fcitx5-gtk
fcitx5-chinese-addons
.
For Japanese Input, install fcitx5-anthy
or fcitx5-mozc
. The first one is more lightweight and the second one is made by google.
If you use v2raya, just refer to the official website.
If you use Clash, clash-nyanpasu
will be a good choice.
because if nix locked the rime config directory, fcitx5-rime can not deploy the config. You need to make Rime config repository an individual repository, instead of managing them by nix.
Change the VSCode Keyboard: Dispatch
setting to keyCode
instead of code
.