Install grocy (a grocery management app); this will later be moved to rpi02, but I haven't ported nix to it yet
diff --git a/src/apps/system/grocy.nix b/src/apps/system/grocy.nix
new file mode 100644
index 0000000..9a684e8
--- /dev/null
+++ b/src/apps/system/grocy.nix
@@ -0,0 +1,18 @@
+{ ... }: {
+ services.grocy = {
+ enable = true;
+
+ settings = {
+ currency = "GBP";
+ culture = "en";
+ calendar = {
+ showWeekNumber = true;
+ firstDayOfWeek = 0;
+ };
+ };
+
+ hostName = "grocy.services.local";
+ dataDir = "/var/lib/grocy";
+ enableSSL = true;
+ };
+}
diff --git a/src/system.nix b/src/system.nix
index d7ec85a..b31139d 100644
--- a/src/system.nix
+++ b/src/system.nix
@@ -1,8 +1,9 @@
{ pkgs, lib, modulesPath, config, ... }:
let
nixScripts = import ./utils/nixFilesIn.nix lib ./nix/system;
+ nixApps = import ./utils/nixFilesIn.nix lib ./apps/system;
in {
- imports = nixScripts ++ [ (modulesPath + "/installer/scan/not-detected.nix") ];
+ imports = nixScripts ++ nixApps ++ [ (modulesPath + "/installer/scan/not-detected.nix") ];
# Prepare nix flakes