feat(hackens-org): deploy ragb server
This commit is contained in:
parent
d5a8c00539
commit
8356e15211
16 changed files with 221 additions and 97 deletions
4
hive.nix
4
hive.nix
|
@ -50,7 +50,7 @@ let
|
||||||
arch: p:
|
arch: p:
|
||||||
import p {
|
import p {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = import ./pkgs/overlays.nix;
|
overlays = import ./pkgs/overlays.nix { inherit sources; };
|
||||||
system = arch;
|
system = arch;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ in
|
||||||
{
|
{
|
||||||
meta = {
|
meta = {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit metadata;
|
inherit sources metadata;
|
||||||
};
|
};
|
||||||
nixpkgs = defaultNixpkgs;
|
nixpkgs = defaultNixpkgs;
|
||||||
nodeNixpkgs = concatAttrs (builtins.map mkNixpkgs nodes);
|
nodeNixpkgs = concatAttrs (builtins.map mkNixpkgs nodes);
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
./matterbridge.nix
|
./matterbridge.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./orga
|
./orga
|
||||||
|
./ragb.nix
|
||||||
./snipe-it.nix
|
./snipe-it.nix
|
||||||
./secrets
|
./secrets
|
||||||
./static-sites.nix
|
./static-sites.nix
|
||||||
|
|
78
machines/hackens-org/ragb.nix
Normal file
78
machines/hackens-org/ragb.nix
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
{
|
||||||
|
sources,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.django.ragb = {
|
||||||
|
enable = true;
|
||||||
|
src = pkgs.ragb-src + "/frontend";
|
||||||
|
settings = {
|
||||||
|
DEBUG = false;
|
||||||
|
WEBSOCKET_ENDPOINT = "https://agb.hackens.org/api";
|
||||||
|
ALLOWED_HOSTS = [
|
||||||
|
"127.0.0.1"
|
||||||
|
"agb.hackens.org"
|
||||||
|
];
|
||||||
|
DATABASES = {
|
||||||
|
"default" = {
|
||||||
|
"ENGINE" = "django.db.backends.sqlite3";
|
||||||
|
"NAME" = "/var/lib/django-ragb/ragb_frontend.sqlite3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
processes = 2;
|
||||||
|
threads = 4;
|
||||||
|
port = 9991;
|
||||||
|
extraPackages = p: [
|
||||||
|
p.authens
|
||||||
|
p.pyjwt
|
||||||
|
];
|
||||||
|
secrets = {
|
||||||
|
SECRET_KEY = config.age.secrets.ragb.path;
|
||||||
|
JWT_SECRET = config.age.secrets.ragbJWT.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts."agb.hackens.org" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://localhost:9991";
|
||||||
|
};
|
||||||
|
"/api" = {
|
||||||
|
proxyPass = "http://localhost:9999";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
"/static".root = config.services.django.ragb.staticAssets;
|
||||||
|
"= /api-docs" = {
|
||||||
|
return = "302 /api-docs/";
|
||||||
|
};
|
||||||
|
"/api-docs/" = {
|
||||||
|
alias = "${pkgs.ragb-src + "/api-docs/"}/";
|
||||||
|
extraConfig = "autoindex on;";
|
||||||
|
};
|
||||||
|
"= /api-docs/patch.json".alias = pkgs.ragb-src + "/frontend/patch.json";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.django-ragb.serviceConfig = {
|
||||||
|
Wants = [ "ragb-backend.service" ];
|
||||||
|
};
|
||||||
|
systemd.services.ragb-backend = {
|
||||||
|
script = ''
|
||||||
|
export JWT_SECRET=$(cat $CREDENTIALS_DIRECTORY/jwt_secret)
|
||||||
|
export BK_FILE="$STATE_DIRECTORY/data.json"
|
||||||
|
# export RUST_LOG=info
|
||||||
|
${pkgs.ragb-backend}/bin/ragb-backend
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
LoadCredential = [
|
||||||
|
"jwt_secret:${config.age.secrets.ragbJWT.path}"
|
||||||
|
];
|
||||||
|
DynamicUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,12 @@
|
||||||
age.secrets."django" = {
|
age.secrets."django" = {
|
||||||
file = ./django.age;
|
file = ./django.age;
|
||||||
};
|
};
|
||||||
|
age.secrets."ragbJWT" = {
|
||||||
|
file = ./ragbJWT.age;
|
||||||
|
};
|
||||||
|
age.secrets."ragb" = {
|
||||||
|
file = ./ragb.age;
|
||||||
|
};
|
||||||
age.secrets."snipeit" = {
|
age.secrets."snipeit" = {
|
||||||
file = ./snipeit.age;
|
file = ./snipeit.age;
|
||||||
owner = "snipeit";
|
owner = "snipeit";
|
||||||
|
|
|
@ -1,31 +1,30 @@
|
||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 JGx7Ng WteJXpTnBzKZpognUrmY7vJkwvgxG2JlqPOkJ1BnoU0
|
-> ssh-ed25519 JGx7Ng UMbo24t6bweWPSYr1MUpjW96t3+usu+M3+WmLkJpSTc
|
||||||
Hn44BN9Sb0BhgWBDZR7Xm4AAeRY2LE7ILgtBi8D/QTA
|
vW8wOX/E6p3YEh8rRObScdcKB+uCtVIEOQ58HXSHYRU
|
||||||
-> ssh-ed25519 kXobKQ H0VlX0C2BfZWzA+c7tGaokBTGR855cTlE2qlZkKyZXg
|
-> ssh-ed25519 kXobKQ wEsnzLjnW+tdNvBHYBL+pLQh0GsAviTiD7tODc+5nSc
|
||||||
9cTALIMwuoLyfjQ6AwzM+DWE1jLmxzoKuQ0NsGud+Ik
|
gW8TEewhh4N0ed6KNe+PYBQuEmuL8iO+KxLQt2imbbo
|
||||||
-> ssh-ed25519 7hZk0g XYW9TFHZ2ule9rmiOeTGPLEGEEhkTGvV946UwV1XVwQ
|
-> ssh-ed25519 7hZk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/vwQcQ ShQtj+r8CjS6zB2T4IYps21Wt8psIzrrff9NmibGQRI
|
-> ssh-ed25519 /vwQcQ oaIOirE4++Kx76xSCoQ8EKmnI3Zh8rzou0XACYVY3Gw
|
||||||
dGBMjJfL11Asv+w5FrTJo1iknZZQNekcxoaLxmzAJAI
|
H9DsHQPdKaN/5bz4kf224NiJ8W1ykGx9tARd5UUrMbc
|
||||||
-> ssh-ed25519 0R97PA hhRQZ7ddcQtQfwLHADUz6LI3lofzMxNfsLBSsN+keUA
|
-> ssh-ed25519 0R97PA SujU6d2DMDGX4zxsQwQTLFM2ap/3ni2y7zpU8BksTw0
|
||||||
sMKxjsYj+f75tMsM6d4dqLgTozzRcCzZQf9rgjRi4Wk
|
zLuD8EwORd5aDOFBpE0Nm5gHpi8ChRobg6v7r1sNfMU
|
||||||
-> ssh-ed25519 5rrg4g OETtCVypHjgLnenHGL6inIhhestIUEF0LVfJVu6HBSY
|
-> ssh-ed25519 cvTB5g t62LJ9atiYi5K+CBXXLB9obIZRWBKxrC896q6iCz/mA
|
||||||
4GWYGsrHaCQURF6ffwN67Sz0DSwBWJ+cBn4WsA9+bm4
|
WYkA2muGBMuXlO5ebnul3NkidNcyIWecAdNTo03trf0
|
||||||
-> ssh-ed25519 cvTB5g 5QS4yEkwZDcRKx5w9ip/XW2RUKuDoR9hjT2rITG9bj0
|
-> ssh-ed25519 Wu8JLQ 3gzrf2TLDbG3YtMmO0qKVKiEPw+arN8DJvNiC09/4wg
|
||||||
a6uP4DJZuOEy5wFnCoM1pUd5p1ySSNXBd8WINORz314
|
bYCCgA0ve55hKEjGFa+nAelWiYWy6WFHss9R6uEjiUI
|
||||||
-> ssh-ed25519 Wu8JLQ 4/ETnzSAyvb1rm30ZXxBvWrCVvYzmvEjjai4W+nfEmU
|
-> ssh-ed25519 EIt1vA kKs5NcxlLTt3iGD8stN7nOgOfomKEv2aZZ969dZNFlg
|
||||||
8YpBxgtgNASRGABkPIWV19iQdcK5OI2toSefifCJi6A
|
IQT3Fx9Egd4kJ6Q3gsbiymu8EHSrjG1F7T5Uz76Z6Bo
|
||||||
-> ssh-ed25519 EIt1vA pKBHFdt17ruSWarLGRMv9Jg5p4owmb05Chqi1waUlEM
|
-> ssh-ed25519 X51wxg GU838E9JPhdAkYgRRcYi+gMsFFUTvY4iciFi9b43WhY
|
||||||
21pDqeyKGbmkoHblA6LujvYNMo1DQ6u+0KjASPp88L4
|
vsHQ70mCsW0NUzMKjgRq6czFD8FwIFj6uo/jklPzI68
|
||||||
-> ssh-ed25519 X51wxg p7PTrP8g6+85BCyujUAI6h8D5dQOWV4n72Cu2wQzBls
|
--- axO8MoSOSkcp2HcVpAz9tQuuf0Unh2Ri20S60/Yq6xA
|
||||||
X9Sz+dmsnWfVn7RfdQoNdK9ifDKuyqa4QnIz+OfK1xY
|
i¸0ä<3›6,Û{àu›$apG7¢—Ú10Y•&«Øf7(&{3Û]àƒcÝ“ ¶>l¶P"$`ÝU(9¨ì5+°îJî^¼æé‚Ï»|†Õ:~
|
||||||
--- JD+a9OJUT/rKwLe2m4naby7JV5VE/d4fDaeg2Edyl5I
|
|
||||||
]=Ë
|
|
||||||
<EFBFBD>ÄÓÝ»÷â<C3B7>8L’tømrœ]e-\Q=:¿óYx×:Ÿ6—ÕÚýNôäî‘ÉnIÓï©<C3AF>dc<64>€0YË0¥ŒC ]MôD—
|
|
|
@ -1,30 +1,31 @@
|
||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 JGx7Ng eXYZhPOAu5XuLnLyVZEWG0yGReNd1NrYoZaYWk03rAw
|
-> ssh-ed25519 JGx7Ng IWxk65t5YAq/Sg+0CCcLGJyDhvPydKm1D9rYAfCDjUc
|
||||||
rMmxeUr95ruA24E5rchZ7dWCaJOerRmulpjwbAtqqCA
|
ckB1V+J7Qddbt9EILraMge9RrThyTU2al5Eg6ffD7C4
|
||||||
-> ssh-ed25519 kXobKQ rJXA+IoLwVLV/EUlDBQztg1jDIj36u5k7C0wD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0tzXEtUlJ8jKlCW9SM+un+KePGXbaBr96rb54
|
V2EHtwK0CUdLYCzia43m4WmBxFy8frfR0hkdIkARnl4
|
||||||
-> ssh-ed25519 Wu8JLQ 2nRMfMlSNQVOdZGklQfgkH2jv8ECmRKML99H1iPbNys
|
-> ssh-ed25519 EIt1vA FmznskIDNtFkD6HD64uL5OS2rwPwT1S5lCirtYFW0Rk
|
||||||
bLxntIPxKRBqEu+ovCU2NJklH1UEQr7miSg83Pfrskk
|
3TKTCN45ygLTcrfSRdsXJZKdoz+A3tP7lXbNn2NOhvk
|
||||||
-> ssh-ed25519 EIt1vA 9MwmTDKECbLsFwQYfQaF6RlOmYdlu3iLOCFQopifuiQ
|
-> ssh-ed25519 X51wxg X3KyzjW97PF8CFcb0NWW5F6JNMZslmP22d0+r0FRvlo
|
||||||
GZl2HMbgI+u6oAVFSa6zV+d3ra9QbmJcITsrMbxU/pk
|
mZq7lSEnD3Ui7hcloSCdTH/q4mB2q6lFTvzMRS+BCb4
|
||||||
-> ssh-ed25519 X51wxg qRnN1ZKEBckkixg7wgAqDphIRULurzrd+dj8l2u6RRQ
|
--- 4u64XNKKDMEaWeL4wLdkOgugYTkrqpfoFeG/BW4/zK8
|
||||||
gfdYoCOppQ/ztSY9tEa8PYEbyx5rzu3Qu7Ba/OvcA78
|
)Éé9çèñ”ÖÙ
|
||||||
--- q31//bFmbqBhs9r8hy21qyVIwqSy7sYXRn1a/XIrfJc
|
È.kâùô}O<>0Š«6ï'¥áJ¼}ŒýW(„ÖÖ·V>dè$ö8icjw hÂ<aöÞ¿4›3Ð5NŒUºÎÎègYÃ
|
||||||
íËÁî†*R·ÿª–TÎR‚ÅÅtÄr˜ÿCóAÏ_j]DpÏnö•÷wÕJ`j‘‚ž_fýgO¹Ðö¨ÁO®<4F>XˆªŠ1¬w‹—Ì€v<>Ê
|
|
Binary file not shown.
Binary file not shown.
30
machines/hackens-org/secrets/ragb.age
Normal file
30
machines/hackens-org/secrets/ragb.age
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 JGx7Ng 6s1XuhN3TFuW433ZrghssoyScvjqG6tg+ZSvHBwYOjQ
|
||||||
|
54ijsvv7CO/1L9ib4fgiRAQHmlU2r3j/fbc79qiAo38
|
||||||
|
-> ssh-ed25519 kXobKQ WMApvaovS/ddPbz7Eh9bCF3SzmUJN1NQGMKzWCJ6jQc
|
||||||
|
3NehvO3X7uMU/H7g7d4nFsmHk0PhXrRT1XetWUBHAnY
|
||||||
|
-> ssh-ed25519 7hZk0g RqNPzJqoSY1umAJE/FPZ+MR0R9eCDdxonzuh3uMBRhI
|
||||||
|
Cfou0mqV4gHGP7OJbgPm8VotU4cM5YVX3iUkd6myU+E
|
||||||
|
-> ssh-ed25519 5rrg4g mSZUVF9y4vYfBbjgP0UnSfgaGTC3/Yx+fAFquA5022E
|
||||||
|
1yiri7+CZTSUhPpJlo9f1EraRVl3Ihw4wtjgXJPMRqY
|
||||||
|
-> ssh-rsa krWCLQ
|
||||||
|
gMc7ogvibqMuboKqSgqfedIxqyhhljJFp5zI2bK6D5rdcV5CIPVz2xQdk4h678Qg
|
||||||
|
8pYlg1+UDu+JyXvJgtWZHYMGSs17woIYZmw9UQh+IYMo4Qn89tn4QN4exYwB+7gm
|
||||||
|
dWEqo7GggWG0Mu2w2OVu2oB1D5aUvF940hUCyl40V7hIkMpJwFfMfvvD04XsScXV
|
||||||
|
GLpWNYcWIQNaBAxTWRGkpt9jvD1W/DjsOUhOk0BP5hnSPm39awfLFRo3wWFBiaDq
|
||||||
|
yPRi6P8AJdVWS2n+KdQ1j5dLo19DngkUAmepIR+oiNvgIFKqDAvIB5y30d3guGdP
|
||||||
|
7zCS7IEOOMLQvBiq99DU2Q
|
||||||
|
-> ssh-ed25519 /vwQcQ GWEth3AXh2blSPzXzyqaHdRlA+Qmopvdk9DfL69PVlk
|
||||||
|
sVq7EbVmJ0SnYLueCHB5zOr/aR9QurTqtMIXGdL22cY
|
||||||
|
-> ssh-ed25519 0R97PA gZLoe8C+FTOXM0i4VWBwBSNSxZhfxG6U3pakRBDwZ0k
|
||||||
|
LKxzJofqUfdY1swAbRNcOcWfZJ1lbp7S20y+dfjKvUU
|
||||||
|
-> ssh-ed25519 cvTB5g GbEB6Z/6A/ntU8truri+tshuy5tqYSSo5SF0Brt0VgI
|
||||||
|
DOkGd68tE85ajEBmKUx9HXiKLjCdUf/tKME6+Ems/RA
|
||||||
|
-> ssh-ed25519 Wu8JLQ tOF/Dc72uMnmQy4rNjPoRzVhQEuwiYLrmmdCsmJ5wEk
|
||||||
|
RS5erkX1HIvTDw6g8qrOtZy1zpCphnGw/bqT4F0Q6/8
|
||||||
|
-> ssh-ed25519 EIt1vA tSBgk0ljTD1pLRsw7axRh2zl+vIMISjrw7zrr01TBB0
|
||||||
|
hb3kb12kRHCxMeBlxjg6tJpgQpHzJkovH5ncuM4MzNA
|
||||||
|
-> ssh-ed25519 X51wxg Gy0QJbua5ZoNYDnuQXlPVFxQvm7SSOMUR0uDRI719gk
|
||||||
|
VEYU1qazlM62F2xsXIFhIAEL4ssWW8o2/e07NguMp88
|
||||||
|
--- VwkrST6cm5HpWtRWBM4tkk14C/NwtxpBbXHVj6ouyxk
|
||||||
|
(`WÊ;+u'oÓj Ý<>—õ{ïMÄP0ž‡›DèÈ™J}Å<>¯»È{ìætˆ°ïj`ÂK:׸ŠI;™çA2ÿCÕ+ ö\Nú
|
BIN
machines/hackens-org/secrets/ragbJWT.age
Normal file
BIN
machines/hackens-org/secrets/ragbJWT.age
Normal file
Binary file not shown.
|
@ -5,48 +5,28 @@ let
|
||||||
builtins.filter (k: k != "") (
|
builtins.filter (k: k != "") (
|
||||||
lib.splitString "\n" (builtins.readFile (../../../pubkeys + "/${user}.keys"))
|
lib.splitString "\n" (builtins.readFile (../../../pubkeys + "/${user}.keys"))
|
||||||
);
|
);
|
||||||
|
keys =
|
||||||
|
(readpubkeys "sinavir")
|
||||||
|
++ (readpubkeys "hackens-host")
|
||||||
|
++ (readpubkeys "catvayor")
|
||||||
|
++ (readpubkeys "raito")
|
||||||
|
++ (readpubkeys "gdd")
|
||||||
|
++ (readpubkeys "backslash");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"matterbridge-env.age".publicKeys =
|
"matterbridge-env.age".publicKeys = keys;
|
||||||
(readpubkeys "sinavir")
|
|
||||||
++ (readpubkeys "hackens-host")
|
|
||||||
++ (readpubkeys "catvayor")
|
|
||||||
++ (readpubkeys "raito")
|
|
||||||
++ (readpubkeys "gdd")
|
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
"snipeit.age".publicKeys =
|
"snipeit.age".publicKeys =
|
||||||
(readpubkeys "sinavir")
|
keys;
|
||||||
++ (readpubkeys "hackens-host")
|
"ragbJWT.age".publicKeys =
|
||||||
++ (readpubkeys "raito")
|
keys;
|
||||||
++ (readpubkeys "catvayor")
|
"ragb.age".publicKeys =
|
||||||
++ (readpubkeys "gdd")
|
keys;
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
"django.age".publicKeys =
|
"django.age".publicKeys =
|
||||||
(readpubkeys "sinavir")
|
keys;
|
||||||
++ (readpubkeys "hackens-host")
|
|
||||||
++ (readpubkeys "raito")
|
|
||||||
++ (readpubkeys "catvayor")
|
|
||||||
++ (readpubkeys "gdd")
|
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
"django-gestiohackens.age".publicKeys =
|
"django-gestiohackens.age".publicKeys =
|
||||||
(readpubkeys "sinavir")
|
keys;
|
||||||
++ (readpubkeys "hackens-host")
|
|
||||||
++ (readpubkeys "raito")
|
|
||||||
++ (readpubkeys "catvayor")
|
|
||||||
++ (readpubkeys "gdd")
|
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
"wg-key.age".publicKeys =
|
"wg-key.age".publicKeys =
|
||||||
(readpubkeys "sinavir")
|
keys;
|
||||||
++ (readpubkeys "hackens-host")
|
|
||||||
++ (readpubkeys "raito")
|
|
||||||
++ (readpubkeys "gdd")
|
|
||||||
++ (readpubkeys "catvayor")
|
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
"prometheus-webconf".publicKeys =
|
"prometheus-webconf".publicKeys =
|
||||||
(readpubkeys "sinavir")
|
keys;
|
||||||
++ (readpubkeys "hackens-host")
|
|
||||||
++ (readpubkeys "raito")
|
|
||||||
++ (readpubkeys "gdd")
|
|
||||||
++ (readpubkeys "catvayor")
|
|
||||||
++ (readpubkeys "backslash");
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -61,6 +61,17 @@
|
||||||
"revision": "06cf0e1da4208d3766d898b7fdab6513366d45b9",
|
"revision": "06cf0e1da4208d3766d898b7fdab6513366d45b9",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/06cf0e1da4208d3766d898b7fdab6513366d45b9.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs/archive/06cf0e1da4208d3766d898b7fdab6513366d45b9.tar.gz",
|
||||||
"hash": "0l68zz8mn2kvp9wvc6rgw7dns8vkl7w9y6z92blvgn1wnm9ib6ab"
|
"hash": "0l68zz8mn2kvp9wvc6rgw7dns8vkl7w9y6z92blvgn1wnm9ib6ab"
|
||||||
|
},
|
||||||
|
"ragb": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "Git",
|
||||||
|
"url": "https://git.dgnum.eu/HackENS/ragb"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"revision": "dfbaf2fd65fe16f5a66b5b16afef83502ea4b237",
|
||||||
|
"url": null,
|
||||||
|
"hash": "0vjs8cm2q2f2s8a8zqjj159rg1m7q6fzrg269gfpmrmgwpp3wh52"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 3
|
"version": 3
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
{ sources }:
|
||||||
[
|
[
|
||||||
(import ((import ../npins).agenix + "/overlay.nix"))
|
(import (sources.agenix + "/overlay.nix"))
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(self: _: {
|
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [(self: _: {
|
||||||
loadcredential = self.callPackage ./loadcredential { };
|
loadcredential = self.callPackage ./loadcredential { };
|
||||||
|
@ -11,4 +12,8 @@
|
||||||
markdown-icons = self.callPackage ./markdown-icons { };
|
markdown-icons = self.callPackage ./markdown-icons { };
|
||||||
})];
|
})];
|
||||||
})
|
})
|
||||||
|
(final: prev: {
|
||||||
|
ragb-backend = final.callPackage ./ragb-backend.nix { src = final.ragb-src; };
|
||||||
|
ragb-src = sources.ragb;
|
||||||
|
})
|
||||||
]
|
]
|
||||||
|
|
13
pkgs/ragb-backend.nix
Normal file
13
pkgs/ragb-backend.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, src
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = "ragb-backend";
|
||||||
|
version = "0.3";
|
||||||
|
|
||||||
|
src = src + "/backend";
|
||||||
|
|
||||||
|
cargoHash = "sha256-lyYCXjmsm12xYHk30g5PDBpQb10xaB6zpoEi2xpjeiM=";
|
||||||
|
}
|
Loading…
Reference in a new issue