I should commit more frequently 🫣
This commit is contained in:
parent
d7e82621c8
commit
f1483e45f0
70 changed files with 2344 additions and 599 deletions
45
modules/grocy/default.nix
Normal file
45
modules/grocy/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
grocy = super.grocy.overrideAttrs (old: {
|
||||
meta.broken = false;
|
||||
version = "4.0.1";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "grocy";
|
||||
repo = "grocy";
|
||||
rev = "v4.0.1";
|
||||
hash = "sha256-bCUH2dRCSNkpWyUxGdTdjgVsagbBghcHsBX01+NuHGc=";
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
services.grocy = {
|
||||
enable = true;
|
||||
hostName = "grocy.aciceri.dev";
|
||||
nginx.enableSSL = false;
|
||||
settings = {
|
||||
culture = "it";
|
||||
currency = "EUR";
|
||||
calendar = {
|
||||
firstDayOfWeek = 1;
|
||||
showWeekNumber = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts.${config.services.grocy.hostName}.listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 6789;
|
||||
ssl = false;
|
||||
}
|
||||
];
|
||||
networking.firewall.interfaces."wg0" = {
|
||||
allowedTCPPorts = [
|
||||
6789
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue