Move Monica to REI

This commit is contained in:
Greg Hellings
2023-09-08 03:59:50 +00:00
parent 0cc4b53821
commit a74f68c59c
4 changed files with 23 additions and 43 deletions
-1
View File
@@ -5,7 +5,6 @@
./git.nix ./git.nix
./hardware-configuration.nix ./hardware-configuration.nix
./podman.nix ./podman.nix
./monica.nix
./nextcloud.nix ./nextcloud.nix
./nginx.nix ./nginx.nix
./postgres.nix ./postgres.nix
-28
View File
@@ -1,28 +0,0 @@
{ config, ... }:
{
services.monica = {
enable = true;
appKeyFile = config.age.secrets.monica.path;
appURL = "https://people.thehellings.com";
database = {
port = 5432;
};
nginx = {
addSSL = true;
enableACME = true;
serverAliases = [ "people.thehellings.com" ];
};
};
age.secrets.monica = {
file = ../../secrets/monica.age;
owner = "monica";
};
greg.backup.jobs.monica = {
src = "/var/lib/monica";
dest = "monica";
user = "monica";
};
}
+21 -9
View File
@@ -1,15 +1,27 @@
{ ... }: { config, ... }:
{ {
services = { services.monica = {
odoo = {
enable = true; enable = true;
domain = "doublel.thehellings.com"; appKeyFile = config.age.secrets.monica.path;
settings.options = { appURL = "https://people.thehellings.com";
db_host = "localhost"; database = {
db_port = "5432"; port = 5432;
db_user = "odoo"; };
dbfilter = "^doublel.*$"; nginx = {
addSSL = true;
enableACME = true;
serverAliases = [ "people.thehellings.com" ];
}; };
}; };
age.secrets.monica = {
file = ../../secrets/monica.age;
owner = "monica";
};
greg.backup.jobs.monica = {
src = "/var/lib/monica";
dest = "monica";
user = "monica";
}; };
} }
-3
View File
@@ -41,9 +41,6 @@
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4"
];
}; };
# Base packages that need to be in all my hosts # Base packages that need to be in all my hosts