Secret : Add comments.
This commit is contained in:
parent
16d734d81e
commit
a24b5bdd99
|
@ -1,12 +1,12 @@
|
|||
{ secret, ... }: {
|
||||
config = {
|
||||
credential.helper = "store";
|
||||
gpg.format = secret.crypto.sign.format;
|
||||
gpg.ssh.allowedSignersFile = toString(secret.crypto.sign.allowed);
|
||||
gpg.format = secret.crypto.sign.gih.format;
|
||||
gpg.ssh.allowedSignersFile = toString(secret.crypto.sign.git.allowed);
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
push.autoSetupRemote = true;
|
||||
rebase.autoStash = true;
|
||||
user.signingkey = builtins.readFile secret.crypto.sign.key;
|
||||
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
pull.rebase = true;
|
||||
push.autoSetupRemote = true;
|
||||
rebase.autoStash = true;
|
||||
user.signingkey = builtins.readFile secret.crypto.sign.key;
|
||||
gpg.ssh.allowedSignersFile = toString(secret.crypto.sign.allowed);
|
||||
gpg.format = secret.crypto.sign.format;
|
||||
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
||||
gpg.ssh.allowedSignersFile = toString(secret.crypto.sign.git.allowed);
|
||||
gpg.format = secret.crypto.sign.git.format;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
# Secrets configuration.
|
||||
{ ... }: {
|
||||
# Password used for root user.
|
||||
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
||||
|
||||
ssh = {
|
||||
# Keys that are allowed to connect via SSH.
|
||||
trustedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
||||
(builtins.readFile ./secret/public/Ssh.key)
|
||||
];
|
||||
|
||||
# Keys that are allowd to connect via SSH to nixbuild user for Nix remote builds.
|
||||
builderKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuuw5ek5wGB9KdBhCTxjV+CBpPU6RIOynHkFYC4dau3 root@dasha"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGIf192IxsksM6u8UY+eqpHopebgV+NNq2G03ssdXIgz root@desktop"
|
||||
|
@ -19,11 +21,14 @@
|
|||
};
|
||||
|
||||
crypto = {
|
||||
sign = {
|
||||
# Git commit signing.
|
||||
sign.git = {
|
||||
format = "ssh";
|
||||
key = ./secret/public/Ssh.key;
|
||||
allowed = ./secret/public/Signers.key;
|
||||
};
|
||||
|
||||
# List of accepted public keys.
|
||||
publicKeys = [
|
||||
{
|
||||
source = ./secret/public/Gpg.key;
|
||||
|
|
Loading…
Reference in a new issue