-
darwin: home-manager only, I don’t employ nix-darwin.
-
aarch64, x86_64 vm(cloud and local): nixos with embeded home-manager.
-
legacy linux distribution like ubuntu: home-manager only.
The newly installed NixOS does not come with vim by default, I’m not used to the nano editor. Use the following command to temporarily use vim:
nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#vim
: make pin-registry : nix shell nixpkgs#git nixpkgs#home-manager : home-manager switch --flake . : #or : nix run nixpkgs#home-manager switch -- --flake . : sudo nixos-rebuild switch --flake .#tart-vm
first, install nix, then install nixos from the flake:
$ bash <(curl -L https://nixos.org/nix/install) --daemon $ e2label /dev/vda1 nixos $ mkdir ~/.config/nix $ cat <<EOF >~/.config/nix/nix.conf experimental-features = nix-command flakes keep-outputs = true keep-derivations = true max-jobs = auto EOF $ nix profile install --profile /nix/var/nix/profiles/system github:penglei/nix-configs#nixosConfigurations.slim.config.system.build.toplevel $ sudo chown -R 0:0 /nix $ sudo touch /etc/NIXOS $ sudo touch /etc/NIXOS_LUSTRATE $ echo etc/nixos | sudo tee -a /etc/NIXOS_LUSTRATE etc/nixos $ sudo mv -v /boot /boot.bak renamed '/boot' -> '/boot.bak' $ sudo /nix/var/nix/profiles/system/bin/switch-to-configuration boot $ shutdown -r now $ nix-collect-garbage
shell expansion
macOS NSUserDefaults
macOS awesome apps
fonts
icon font
# launchctl load -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist # launchctl unload -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist # launchctl kickstart -k gui/$(id -u)/org.nix-community.home.yabai
based on: github.com/iDvel/rime-ice
grammer model: https://github.com/lotem/rime-octagram-data/tree/hans
log location:
-
$TMPDIR/rime.squirrel.INFO
-
$TMPDIR/rime.squirrel.ERROR
force deploy (nix home-manager links rime config):
rm -rf ~/Library/Rime/build # Press Ctrl+Option(left)+` to re-deploy
Shift+space as switcher key: rime/squirrel#113
installation.yaml should be writable after upgrading squirrel.