feat(*): initialize new Snix infrastructure
Co-Authored-By: edef <edef@edef.eu> Co-Authored-by: Ryan Lahfa <raito@lix.systems> Change-Id: Ica1cda177a236814de900f50a8a61d288f58f519
This commit is contained in:
parent
067eff3427
commit
a52ea3675c
124 changed files with 27723 additions and 1631 deletions
|
|
@ -9,6 +9,7 @@ let
|
|||
inherit (depot.nix.yants)
|
||||
attrs
|
||||
any
|
||||
either
|
||||
defun
|
||||
list
|
||||
path
|
||||
|
|
@ -17,7 +18,8 @@ let
|
|||
struct
|
||||
;
|
||||
ssh-pubkey = restrict "SSH pubkey" (lib.hasPrefix "ssh-") string;
|
||||
agenixSecret = struct "agenixSecret" { publicKeys = list ssh-pubkey; };
|
||||
age-pubkey = restrict "age pubkey" (lib.hasPrefix "age") string;
|
||||
agenixSecret = struct "agenixSecret" { publicKeys = list (either age-pubkey ssh-pubkey); };
|
||||
in
|
||||
|
||||
defun [ path (attrs agenixSecret) (attrs any) ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue