[shared] Add experimental flag to commands
This commit is contained in:
6
justfile
6
justfile
@@ -69,11 +69,11 @@ generate-ssh:
|
|||||||
# Generate a new age key from an existing ssh key (without passphrase)
|
# Generate a new age key from an existing ssh key (without passphrase)
|
||||||
generate-age-from-ssh:
|
generate-age-from-ssh:
|
||||||
mkdir -p ~/.config/sops/age
|
mkdir -p ~/.config/sops/age
|
||||||
nix run nixpkgs#ssh-to-age -- -private-key -i ~/.ssh/id_ed25519 > ~/.config/sops/age/keys.txt
|
nix run nixpkgs#ssh-to-age --experimental-features 'nix-command flakes' -- -private-key -i ~/.ssh/id_ed25519 > ~/.config/sops/age/keys.txt
|
||||||
|
|
||||||
# Get a public age key from an existing age private key
|
# Get a public age key from an existing age private key
|
||||||
get-public-age-key:
|
get-public-age-key:
|
||||||
nix shell nixpkgs#age -c age-keygen -y ~/.config/sops/age/keys.txt
|
nix shell nixpkgs#age --experimental-features 'nix-command flakes' -c age-keygen -y ~/.config/sops/age/keys.txt
|
||||||
|
|
||||||
# Get the public ssh key from the current user
|
# Get the public ssh key from the current user
|
||||||
get-public-ssh-key:
|
get-public-ssh-key:
|
||||||
@@ -81,7 +81,7 @@ get-public-ssh-key:
|
|||||||
|
|
||||||
# Edit the SOPS secrets file
|
# Edit the SOPS secrets file
|
||||||
edit-secrets:
|
edit-secrets:
|
||||||
nix run nixpkgs#sops -- shared/secrets/secrets.yaml
|
nix run nixpkgs#sops --experimental-features 'nix-command flakes' -- shared/secrets/secrets.yaml
|
||||||
|
|
||||||
# Hash a string using the mkpasswd command
|
# Hash a string using the mkpasswd command
|
||||||
hash PASS:
|
hash PASS:
|
||||||
|
Reference in New Issue
Block a user