This commit is contained in:
hackens server 2023-01-12 18:40:38 +01:00
parent f7337345f4
commit 648ab4aea8
3 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
imports = [ <agenix/modules/age.nix> ];
age.secrets."wikiOpenID".file = ./wiki-openID.age;
}

View file

@ -1,7 +1,10 @@
let
lib = (import <nixpkgs> { }).lib;
readPubkeys = user: builtins.filter (k: k != "") (lib.splitString "\n" (builtins.readFile (../pubkeys + "/${user}.keys")));
in
{
"wiki-openID.age".publicKeys = (readPubkeys "sinavir") ++ (readPubkeys "hackens-host") ++ (readPubkeys "raito") ++ (readPubkeys "gdd") ++ (readPubkeys "backslash");
readPubkeys = user:
builtins.filter (k: k != "")
(lib.splitString "\n" (builtins.readFile (../pubkeys + "/${user}.keys")));
in {
"wiki-openID.age".publicKeys = (readPubkeys "sinavir")
++ (readPubkeys "hackens-host") ++ (readPubkeys "raito")
++ (readPubkeys "gdd") ++ (readPubkeys "backslash");
}

View file

@ -5,8 +5,7 @@ let
repo = "agenix";
rev = "7e5e58b98c3dcbf497543ff6f22591552ebfe65b";
};
in
{
in {
nixpkgs.config.packageOverrides = {
hackens = import ./myPkgs { inherit pkgs; };
};