######################################################## # # # __ _ _ _ # # _ __ ___ / _(_)___(_)___( ) # # | '_ \/ __| |_| / __| / __|/ # # | | | \__ \ _| \__ \ \__ \ # # |_| |_|___/_| |_|___/_|___/ # # _ _ __ _ _ # # __| | ___ | |_ / _(_) | ___ ___ # # / _` |/ _ \| __| |_| | |/ _ \/ __| # # | (_| | (_) | |_| _| | | __/\__ \ # # \__,_|\___/ \__|_| |_|_|\___||___/ # # # # # ######################################################## # Install ## Hotaru ``` $ sudo apt update $ sudo apt upgrade $ ./bootstrap hotaru $ sudo adduser $(whoami) docker $ cargo install alacritty $ cd ~/src/reparojson $ cargo install --path . ``` ## PC 168 ``` $ brew update $ brew upgrade $ brew install libiconv $ ./bootstrap pc168 $ brew install --cask alacritty # Latest version: https://github.com/adobe-fonts/source-han-code-jp/releases/latest $ curl -fLo ~/Library/Fonts/SourceHanCodeJP.ttc --create-dirs https://github.com/adobe-fonts/source-han-code-jp/releases/download/2.012R/SourceHanCodeJP.ttc $ sudo atsutil databases -remove $ /usr/local/opt/ncurses/bin/infocmp tmux-256color > /var/tmp/tmux-256color.info $ tic -xe tmux-256color /var/tmp/tmux-256color.info # Restart your machine. ``` # Update 1. `nix flake update` 2. `home-manager switch --flake ".#"` # Garbage Collection // 1. `home-manager remove-generations $({ home-manager generations | tail +4 && date -d '-1 month' '+%Y-%m-%d %H:%M : id DELETE ->'; } | sort -r | sed -n '/: id DELETE ->/,$p' | tail +2 | grep -o ': id [0-9]* ->' | awk '{ print $3; }')` 1. `home-manager expire-generations '-1 month'` 2. `nix profile wipe-history` 3. `nix store gc`