aboutsummaryrefslogtreecommitdiffhomepage
path: root/README
blob: 0ed3673f461630ea55e39272b349e031894aea9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
########################################################
#                                                      #
#                        __ _     _     _              #
#             _ __  ___ / _(_)___(_)___( )             #
#            | '_ \/ __| |_| / __| / __|/              #
#            | | | \__ \  _| \__ \ \__ \               #
#            |_| |_|___/_| |_|___/_|___/               #
#              _       _    __ _ _                     #
#           __| | ___ | |_ / _(_) | ___  ___           #
#          / _` |/ _ \| __| |_| | |/ _ \/ __|          #
#         | (_| | (_) | |_|  _| | |  __/\__ \          #
#          \__,_|\___/ \__|_| |_|_|\___||___/          #
#                                                      #
#                                                      #
########################################################



# 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 ".#<host>"`

# 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`