about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2023-08-26 21:32:48 +0200
committerGitHub <noreply@github.com>2023-08-26 21:32:48 +0200
commitebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a (patch)
tree13ff4bd55eef60020be13262dfc830af085e0b36 /nixos
parentca3d16b94820688f18afa34e88cab4ad700a55ba (diff)
parent19d745412302813c7cf87ccc827ad74303d0a07b (diff)
downloadnixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar.gz
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar.bz2
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar.lz
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar.xz
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.tar.zst
nixlib-ebdd6efe6c87dc0a334ec9d5927fdb2fb5a9db5a.zip
Merge pull request #251412 from karolinschlegel/update-odoo
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/release-notes/rl-2311.section.md2
-rw-r--r--nixos/modules/services/finance/odoo.nix8
2 files changed, 9 insertions, 1 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md
index 24c044ece7e0..dd7b57022ccd 100644
--- a/nixos/doc/manual/release-notes/rl-2311.section.md
+++ b/nixos/doc/manual/release-notes/rl-2311.section.md
@@ -113,6 +113,8 @@
 
 - The ISC DHCP package and corresponding module have been removed, because they are end of life upstream. See https://www.isc.org/blogs/isc-dhcp-eol/ for details and switch to a different DHCP implementation like kea or dnsmasq.
 
+- `odoo` now defaults to 16, updated from 15.
+
 - `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities.
 
 - `services.keyd` changed API. Now you can create multiple configuration files.
diff --git a/nixos/modules/services/finance/odoo.nix b/nixos/modules/services/finance/odoo.nix
index fee9af574b5d..eec7c4e30cc4 100644
--- a/nixos/modules/services/finance/odoo.nix
+++ b/nixos/modules/services/finance/odoo.nix
@@ -31,6 +31,12 @@ in
         description = lib.mdDoc ''
           Odoo configuration settings. For more details see <https://www.odoo.com/documentation/15.0/administration/install/deploy.html>
         '';
+        example = literalExpression ''
+          options = {
+            db_user = "odoo";
+            db_password="odoo";
+          };
+        '';
       };
 
       domain = mkOption {
@@ -112,11 +118,11 @@ in
     services.postgresql = {
       enable = true;
 
+      ensureDatabases = [ "odoo" ];
       ensureUsers = [{
         name = "odoo";
         ensurePermissions = { "DATABASE odoo" = "ALL PRIVILEGES"; };
       }];
-      ensureDatabases = [ "odoo" ];
     };
   });
 }