feat: initial commit
This commit is contained in:
commit
486bfc17d1
11 changed files with 551 additions and 0 deletions
BIN
secrets/atticd.env.age
Normal file
BIN
secrets/atticd.env.age
Normal file
Binary file not shown.
9
secrets/default.nix
Normal file
9
secrets/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
age.secrets = lib.mapAttrs' (
|
||||
fileName: _:
|
||||
lib.nameValuePair (lib.removeSuffix ".age" fileName) {
|
||||
file = ./. + "/${fileName}";
|
||||
}
|
||||
) (import ./secrets.nix);
|
||||
}
|
10
secrets/secrets.nix
Normal file
10
secrets/secrets.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
amy = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDTbclOyOwIAPgVE/v5lIuf0P+Tq/Qkw3+GFa4YuRaCC amy@nixon";
|
||||
users = [ amy ];
|
||||
|
||||
nixos = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMAy1iKOrL2yBCWljLnuwo29G5plDblI41jJ4Woy1el root@nixos";
|
||||
systems = [ nixos ];
|
||||
in
|
||||
{
|
||||
"atticd.env.age".publicKeys = users ++ systems;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue