This commit is contained in:
Bryan Ramos 2026-03-15 11:08:33 -04:00
commit 072951659a
114 changed files with 6922 additions and 0 deletions

Binary file not shown.

33
user/keys/default.nix Normal file
View file

@ -0,0 +1,33 @@
{ lib }:
with builtins;
let
extractName = filename:
let
# Remove .key extension
noKey = lib.removeSuffix ".key" filename;
# Remove .pub/.priv/.public/.private markers
noMarkers = replaceStrings
[ ".pub" ".priv" ".public" ".private" ]
[ "" "" "" "" ]
noKey;
in noMarkers;
constructKeys = dir: (
listToAttrs (
map (subdir: {
name = subdir;
value = listToAttrs (
map (file: {
name = extractName file;
value = readFile "${dir}/${subdir}/${file}";
}) (filter (file:
(readDir "${dir}/${subdir}").${file} == "regular" &&
lib.hasSuffix ".key" file
) (attrNames (readDir "${dir}/${subdir}")))
);
}) (filter (node: (readDir dir).${node} == "directory") (attrNames (readDir dir)))
)
);
in
constructKeys ./.

BIN
user/keys/pgp/company.pub.key Executable file

Binary file not shown.

BIN
user/keys/pgp/work.pub.key Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
user/keys/ssh/work.pub.key Normal file

Binary file not shown.

Binary file not shown.