feat: added masterIdentitiy symlink to allow for host specific
decryption
This commit is contained in:
parent
bee158875f
commit
98f240f063
|
@ -109,8 +109,8 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
secretsConfig = {
|
secretsConfig = {
|
||||||
masterIdentities = [./secrets/NIXOSc.key.pub];
|
# This should be a link to one of the age public keys is './keys'
|
||||||
#masterIdentities = [./secrets/NIXOSa.key.pub];
|
masterIdentities = ["/run/decrypt.key.pub"];
|
||||||
extraEncryptionPubkeys = [./secrets/recipients.txt];
|
extraEncryptionPubkeys = [./secrets/recipients.txt];
|
||||||
};
|
};
|
||||||
agenix-rekey = agenix-rekey.configure {
|
agenix-rekey = agenix-rekey.configure {
|
||||||
|
|
|
@ -42,4 +42,8 @@
|
||||||
layout = "de";
|
layout = "de";
|
||||||
xkbVariant = "bone";
|
xkbVariant = "bone";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.activationScripts.decryptKey.text = ''
|
||||||
|
ln -s ${../../keys/PatC.key} /run/decrypt.key.pub
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,4 +50,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
system.activationScripts.decryptKey.text = ''
|
||||||
|
ln -s ${../../keys/PatC.key} /run/decrypt.key.pub
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
inherit
|
inherit
|
||||||
(lib)
|
(lib)
|
||||||
mapAttrs
|
mapAttrs
|
||||||
# Not really unused LSP is confuse
|
|
||||||
|
|
||||||
assertMsg
|
assertMsg
|
||||||
types
|
types
|
||||||
mkOption
|
mkOption
|
||||||
|
@ -29,7 +27,7 @@
|
||||||
importEncrypted = path:
|
importEncrypted = path:
|
||||||
constSet (
|
constSet (
|
||||||
if builtins.pathExists path
|
if builtins.pathExists path
|
||||||
then builtins.extraBuiltins.rageImportEncrypted inputs.self.secretsConfig.masterIdentities path
|
then rageImportEncrypted inputs.self.secretsConfig.masterIdentities path
|
||||||
else {}
|
else {}
|
||||||
);
|
);
|
||||||
cfg = config.secrets;
|
cfg = config.secrets;
|
||||||
|
|
BIN
smbpasswd.tdb
BIN
smbpasswd.tdb
Binary file not shown.
Loading…
Reference in a new issue