Skip to content

wthe2004/NixOSConfig

Repository files navigation

README

How I work

This config works both on my wsl (Ubuntu 20.05) and my desktop computer (EndeavourOS).

Caution

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.

Overview:

  • Input Method: fcitx5-rime
  • Editor: Emacs (spacemacs), VSCode
  • shell: zsh
  • terminal: Kitty
  • VPN Client: clash-nyanpasu

Get Started

NixOS

  1. Install nixOS

  2. Clone the repository to ~/.dotfiles

  3. run these shell command

cd ~/.dotfiles
git add .
sudo nixos-rebuild switch --flake ~/.dotfiles#username
home-manager switch --flake ~/.dotfiles"
  1. install Spacemacs

  2. Have fun!

Home Manager

  1. Install your OS

  2. Install Nix(Single-User Installatioin)

  3. 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
  1. install asdf I use asdf to manage my development environment use asdf.sh in my myScript Directory.

Install the Input method if you need

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.

Install the VPN

If you use v2raya, just refer to the official website.

If you use Clash, clash-nyanpasu will be a good choice.

QA

the Deploy of Rime is not responding

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.

VSCodeVim doesn't recognize the / swap

Change the VSCode Keyboard: Dispatch setting to keyCode instead of code.

About

hwt's nixOS config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published