feat: initial commit

This commit is contained in:
nullishamy 2025-04-05 13:31:32 +01:00
commit 486bfc17d1
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
11 changed files with 551 additions and 0 deletions

BIN
secrets/atticd.env.age Normal file

Binary file not shown.

9
secrets/default.nix Normal file
View 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
View 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;
}