mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
23 lines
436 B
Nix
23 lines
436 B
Nix
{config, lib, ...}: let
|
|
inherit (lib.modules) mkDefault;
|
|
in {
|
|
config = {
|
|
services.grocy = {
|
|
enable = mkDefault true;
|
|
hostName = "grocy";
|
|
nginx.enableSSL = false;
|
|
settings = {
|
|
currency = mkDefault "CAD";
|
|
};
|
|
};
|
|
services.nginx = let
|
|
name.shortServer = mkDefault "grocy";
|
|
in {
|
|
virtualHosts = {
|
|
grocy = {
|
|
inherit name;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|