add grocy scanner to pepe

This commit is contained in:
Ingolf Wagner 2021-11-11 21:06:46 +01:00
parent 100932bf48
commit 05f106e44a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 17 additions and 9 deletions

View file

@ -62,7 +62,7 @@
"secrets": {
"flake": false,
"locked": {
"narHash": "sha256-tsXsKNsa6/AqhXV6YxsSweX++YlwzQuWt0KeaV3SMgQ=",
"narHash": "sha256-MxYVJSIjagI4bKi6TjWW8gF4IkCSg3R/Zjnwmza5Cfo=",
"path": "/home/palo/dev/secrets",
"type": "path"
},

View file

@ -1,16 +1,24 @@
{ config, lib, pkgs, ... }:
{
services.grocy = {
#services.grocy = {
# enable = true;
# settings = {
# culture = "de";
# currency = "EUR";
# };
# hostName = "grocy.pepe.private";
# nginx.enableSSL = false;
#};
#backup.dirs = [ config.services.grocy.dataDir ];
services.grocy-scanner = {
enable = true;
settings = {
culture = "de";
currency = "EUR";
};
hostName = "grocy.pepe.private";
nginx.enableSSL = false;
host = "https://grocy.ingolf-wagner.de";
device = "/dev/input/by-id/usb-Belon.cn_2.4G_Wireless_Device_Belon_Smart-event-kbd";
apiKeyFile = config.sops.secrets.grocyApiKey.path;
};
backup.dirs = [ config.services.grocy.dataDir ];
sops.secrets.grocyApiKey = { };
}