Compare commits

..

4 Commits

Author SHA1 Message Date
inkch
ec4b928a8b use delta as pager 2024-01-18 12:44:55 +09:00
inkch
fc5579fd9f add ssh public keys 2024-01-18 12:27:54 +09:00
inkch
4546d48c07 delete key.txt.age from .chezmoiignore
`chezmoi` seems to ignore files and directories beggining with "." by
default. So, there is no need to add pattern(s) to `.chezmoiignore` to
ignore files/directories stored in `.assets`.
2024-01-18 12:24:07 +09:00
inkch
36fd4c6426 make directory to put asset files in + move age key there 2024-01-18 12:15:27 +09:00
10 changed files with 14 additions and 2 deletions

1
.assets/arch_ecc.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA6kT1StOnTqzAsHrfD2hYseT0NNn4jmWWr/QOIAqFhQ inkch@arch

1
.assets/buzz_ecc.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFi+/1XAFLuDHP7poYvCHDNU0WxWc3PJVJJdFe+CoPTN inkch@kuro

1
.assets/devo_ecc.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFPsBbiLijh2XF6ZQqegMxDLBBGWjwBeUV1OslsZEf8M inkch@devo

View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHEJJRR2LJUZRw/ACfz4dlKmNj6481E+XBNAAr9qp4Kf inkch@arch@emergency1

View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMfXbU51hUJ8gfA85ICQobXFgC7WuhyIlVAblGkksifz inkch@arch@emergency2

1
.assets/rpi4_ecc.pub Normal file
View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIIBNlGgKihZ/TKCbc4uMcxfoiZUwADBq0fm/vGOrhoJ admin@rpi4

View File

@ -2,7 +2,7 @@
command = "nvim" command = "nvim"
[diff] [diff]
command = "delta" pager = "delta"
[merge] [merge]
command = "nvim" command = "nvim"

View File

@ -2,7 +2,6 @@
# https://www.chezmoi.io/reference/special-files-and-directories/chezmoiignore/ # https://www.chezmoi.io/reference/special-files-and-directories/chezmoiignore/
README.md README.md
key.txt.age
.bashrc .bashrc
{{- if ne .chezmoi.osRelease.id "arch" }} {{- if ne .chezmoi.osRelease.id "arch" }}

View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ ! -f "${HOME}/.config/chezmoi/key.txt" ]; then
mkdir -p "${HOME}/.config/chezmoi"
chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/.assets/key.txt.age"
chmod 600 "${HOME}/.config/chezmoi/key.txt"
fi