secrets: start secrets.nix revamp

This commit is contained in:
Infinidoge 2021-11-08 20:21:31 -05:00
parent 990e054e62
commit 9c11766c7d

View file

@ -1,8 +1,22 @@
{ lib, ... }:
with lib;
let let
# set ssh public keys here for your system and user # set ssh public keys here for your system and user
system = ""; systems = {
user = ""; Infini-DESKTOP = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID9a6DiYuEeA+bX4rWgWGRUZwtln8sXtxCG9fPuvp9Hx root@Infini-DESKTOP";
allKeys = [ system user ]; Infini-FRAMEWORK = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF7PmPq/7e+YIVAvIcs6EOJ3pZVJhinwus6ZauJ3aVp0 root@Infini-FRAMEWORK";
# Infini-RPI = "";
# Infini-SERVER = "";
# Infini-STICK = "";
# Infini-SWIFT = "";
};
users = {
infinidoge = "";
};
allKeys = flatten [
(attrValues systems)
(attrValues users)
];
in in
{ {
"secret.age".publicKeys = allKeys; "secret.age".publicKeys = allKeys;