Config/Navi: Add mkpasswd cheat + fix sops paths
This commit is contained in:
@ -179,7 +179,7 @@ $ file: eza -1
|
|||||||
watch -d -c -n 0.5 nvidia-smi
|
watch -d -c -n 0.5 nvidia-smi
|
||||||
|
|
||||||
; ===========================
|
; ===========================
|
||||||
; GPG
|
; SECRETS
|
||||||
; ===========================
|
; ===========================
|
||||||
|
|
||||||
% gpg
|
% gpg
|
||||||
@ -202,11 +202,11 @@ $ mode: echo -e "--export \tExport public key\n--export-secret-keys\t
|
|||||||
|
|
||||||
% sops
|
% sops
|
||||||
# Edit secrets.yaml
|
# Edit secrets.yaml
|
||||||
sops --config ~/NixFlake/system/modules/sops/sops.yaml ~/NixFlake/system/modules/sops/secrets.yaml
|
sops ~/NixFlake/system/modules/sops-nix/secrets.yaml
|
||||||
|
|
||||||
% sops
|
% sops
|
||||||
# Rekey secrets.yaml
|
# Rekey secrets.yaml
|
||||||
sops --config ~/NixFlake/system/modules/sops/sops.yaml updatekeys ~/NixFlake/system/modules/sops/secrets.yaml
|
sops updatekeys ~/NixFlake/system/modules/sops-nix/secrets.yaml
|
||||||
|
|
||||||
% ssh
|
% ssh
|
||||||
# Generate a new SSH key
|
# Generate a new SSH key
|
||||||
@ -222,6 +222,10 @@ age-keygen -o <file>
|
|||||||
age-keygen -y <key>
|
age-keygen -y <key>
|
||||||
$ key: eza -f -1
|
$ key: eza -f -1
|
||||||
|
|
||||||
|
% mkpasswd
|
||||||
|
# Print the hash of a password
|
||||||
|
echo "<password>" | mkpasswd -s
|
||||||
|
|
||||||
; ===========================
|
; ===========================
|
||||||
; CODE
|
; CODE
|
||||||
; ===========================
|
; ===========================
|
||||||
|
Reference in New Issue
Block a user