mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add grocy service to metis
This commit is contained in:
parent
9a31a52140
commit
487d3c74f6
@ -13,6 +13,7 @@ with lib; {
|
||||
nextcloud.enable = mkEnableOption "Set up nextcloud";
|
||||
smailserver.enable = mkEnableOption "Set up simple mail server";
|
||||
unbound.enable = mkEnableOption "Set unbound dns up";
|
||||
grocy.enable = mkEnableOption "Set up grocy";
|
||||
};
|
||||
|
||||
imports = [
|
||||
@ -34,6 +35,7 @@ with lib; {
|
||||
smailserver.enable = mkDefault true;
|
||||
nextcloud.enable = mkDefault true;
|
||||
unbound.enable = mkDefault true;
|
||||
grocy.enable = mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
25
modules/server/grocy.nix
Normal file
25
modules/server/grocy.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
config = let
|
||||
cfg = config.elss.server.grocy;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
services.grocy = {
|
||||
enable = true;
|
||||
hostname = "grocy.ellmauthaler.net";
|
||||
settings = {
|
||||
currency = "EUR";
|
||||
culture = "de";
|
||||
calendar = {
|
||||
showWeekNumber = true;
|
||||
firstDayOfWeek = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user