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": { "secrets": {
"flake": false, "flake": false,
"locked": { "locked": {
"narHash": "sha256-tsXsKNsa6/AqhXV6YxsSweX++YlwzQuWt0KeaV3SMgQ=", "narHash": "sha256-MxYVJSIjagI4bKi6TjWW8gF4IkCSg3R/Zjnwmza5Cfo=",
"path": "/home/palo/dev/secrets", "path": "/home/palo/dev/secrets",
"type": "path" "type": "path"
}, },

View file

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