aboutsummaryrefslogtreecommitdiff
path: root/public/nixos/setup.sh
blob: cfa88b5e7b28b62e495b4871ee6838129a5291c3 (plain) (blame)
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
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash
# shellcheck shell=bash
set -Eeuo pipefail

# import GPG key pair
# download git annex from Nextcloud
# wait for Nextcloud to finish sync
# git annex enable
# git annex describe
# get annex &
# download dotfiles
# mr checkout &
# wait
# restore mbsync from backup
# restore notmuch from backup
# restore newsboat from backup
# restore archive from backup
# open emacs # eval x
# sudo create symlink for /etc/nixos/configuration.nix and /etc/nixos/local-configuration.nix


# *** 4. Import GPG keys in new OS
# #+BEGIN_SRC shell
# gpg -o private -d private.gpg
# gpg --import public.gpg
# gpg --import private
# gpg --edit-key EuAndreh

# # Inside GPG prompt
# trust
# 5
# quit

# # end of GPG prompt
# shred private
# shred private.gpg
# rm private
# rm private.gpg
# rm public.gpg
# #+END_SRC
# *** 5. Clone annex repo from HD and setup remotes
# #+BEGIN_SRC shell
# git clone gcrypt::/media/andreh/UTCLOUD/annex.git
# cd annex
# git annex describe here "repo description"
# git annex enableremote hd
# git annex enableremote gitlab
# git annex enableremote rsyncnet
# git annex enableremote s3
# #+END_SRC