forked from mirrors_public/oddlama_nix-config
feat: transition to flake-part (half done)
This commit is contained in:
parent
6483bd4f7e
commit
78f79917f1
7 changed files with 525 additions and 280 deletions
23
nix/agenix-rekey.nix
Normal file
23
nix/agenix-rekey.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{inputs, ...}: {
|
||||
flake = {config, ...}: {
|
||||
# The identities that are used to rekey agenix secrets and to
|
||||
# decrypt all repository-wide secrets.
|
||||
secretsConfig = {
|
||||
masterIdentities = [../secrets/yk1-nix-rage.pub];
|
||||
extraEncryptionPubkeys = [../secrets/backup.pub];
|
||||
};
|
||||
|
||||
agenix-rekey = inputs.agenix-rekey.configure {
|
||||
userFlake = inputs.self;
|
||||
inherit (config) nodes pkgs;
|
||||
};
|
||||
};
|
||||
|
||||
perSystem.devshells.default.env = [
|
||||
{
|
||||
# Always add files to git after agenix rekey and agenix generate.
|
||||
name = "AGENIX_REKEY_ADD_TO_GIT";
|
||||
value = "true";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue