Compare commits

..

2 Commits

Author SHA1 Message Date
Daniel Olsen
1c2a949102 kvernberg/taler/exchange: Add more denominations 2024-11-17 10:03:16 +01:00
Daniel Olsen
0ade509686 Maybe this sets up the exchange idk.... 2024-11-17 07:16:00 +01:00
2 changed files with 120 additions and 7 deletions

View File

@ -5,8 +5,9 @@
./hardware-configuration.nix ./hardware-configuration.nix
(fp /base) (fp /base)
(fp /misc/metrics-exporters.nix) (fp /misc/metrics-exporters.nix)
./disks.nix ./disks.nix
./services/pvvvvvv
]; ];
sops.defaultSopsFile = fp /secrets/kvernberg/kvernberg.yaml; sops.defaultSopsFile = fp /secrets/kvernberg/kvernberg.yaml;

View File

@ -1,21 +1,23 @@
{ config, lib, fp, pkgs, ... }: { config, lib, fp, pkgs, ... }:
let let
cfg = config.services.taler; cfg = config.services.taler;
inherit (cfg.settings) CURRENCY; inherit (cfg.settings.taler) CURRENCY;
in {
sops.secrets.exchange-offline-master = { sops.secrets.exchange-offline-master = {
format = "binary"; format = "binary";
sopsFile = fp /secrets/kvernberg/exhange-offline-master.priv; sopsFile = fp /secrets/kvernberg/exhange-offline-master.priv;
}; };
{
services.taler.exchange = { services.taler.exchange = {
enable = true; enable = true;
debug = true; debug = true;
openFirwall = true; openFirewall = true;
denominationConfig = '' denominationConfig = ''
[COIN-${CURRENCY}-k1-1-0] ## Old denomination names cannot be used again
#[COIN-${CURRENCY}-k1-1-0]
## NOK Denominations
[coin-${CURRENCY}-nok-1-0]
VALUE = ${CURRENCY}:1 VALUE = ${CURRENCY}:1
DURATION_WITHDRAW = 7 days DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years DURATION_SPEND = 1 years
@ -26,6 +28,116 @@ let
FEE_REFUND = ${CURRENCY}:0 FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048 RSA_KEYSIZE = 2048
CIPHER = RSA CIPHER = RSA
[coin-${CURRENCY}-nok-5-0]
VALUE = ${CURRENCY}:5
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-10-0]
VALUE = ${CURRENCY}:10
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-20-0]
VALUE = ${CURRENCY}:20
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-50-0]
VALUE = ${CURRENCY}:50
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-100-0]
VALUE = ${CURRENCY}:100
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-200-0]
VALUE = ${CURRENCY}:200
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-500-0]
VALUE = ${CURRENCY}:500
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
[coin-${CURRENCY}-nok-1000-0]
VALUE = ${CURRENCY}:1000
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
## PVV Special Prices
# 2024 pizza egenandel
[coin-${CURRENCY}-pvv-64-0]
VALUE = ${CURRENCY}:64
DURATION_WITHDRAW = 7 days
DURATION_SPEND = 1 years
DURATION_LEGAL = 3 years
FEE_WITHDRAW = ${CURRENCY}:0
FEE_DEPOSIT = ${CURRENCY}:0
FEE_REFRESH = ${CURRENCY}:0
FEE_REFUND = ${CURRENCY}:0
RSA_KEYSIZE = 2048
CIPHER = RSA
''; '';
settings = { settings = {
exchange = { exchange = {