Upgrade inputs to 24.11 #16
9 changed files with 16 additions and 10 deletions
|
@ -13,7 +13,7 @@
|
||||||
owner = name;
|
owner = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
qois.postgresql.enable = true;
|
services.postgresql.enable = true;
|
||||||
qois.backup-client.includePaths = [ config.services.nextcloud.home ];
|
qois.backup-client.includePaths = [ config.services.nextcloud.home ];
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
|
|
|
@ -52,11 +52,10 @@ in
|
||||||
|
|
||||||
imports = [ ../../../defaults/webserver ];
|
imports = [ ../../../defaults/webserver ];
|
||||||
|
|
||||||
qois.postgresql.enable = true;
|
|
||||||
|
|
||||||
# Note: Attic cache availability is "best effort", so no artifacts are backed up.
|
# Note: Attic cache availability is "best effort", so no artifacts are backed up.
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
|
enable = true;
|
||||||
ensureDatabases = [ "atticd" ];
|
ensureDatabases = [ "atticd" ];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,4 +7,5 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
qois.git-ci-runner.enable = true;
|
qois.git-ci-runner.enable = true;
|
||||||
|
qois.postgresql.package = pkgs.postgresql_15;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ in
|
||||||
|
|
||||||
imports = [ ../../../defaults/nextcloud ];
|
imports = [ ../../../defaults/nextcloud ];
|
||||||
|
|
||||||
qois.postgresql.enable = true;
|
services.postgresql.enable = true;
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
hostName = host;
|
hostName = host;
|
||||||
|
|
|
@ -2,4 +2,6 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [ ./cloud.nix ];
|
imports = [ ./cloud.nix ];
|
||||||
|
|
||||||
|
qois.postgresql.package = pkgs.postgresql_14;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,5 @@
|
||||||
qois.vault.enable = true;
|
qois.vault.enable = true;
|
||||||
qois.git.enable = true;
|
qois.git.enable = true;
|
||||||
qois.static-page.enable = true;
|
qois.static-page.enable = true;
|
||||||
|
qois.postgresql.package = pkgs.postgresql_15;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,15 @@ in
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
options.qois.postgresql = {
|
options.qois.postgresql = {
|
||||||
enable = mkEnableOption ''Enable postgresql services with defaults'';
|
# Note: this module is auto-enabled if postgres is used.
|
||||||
|
package = mkPackageOption pkgs "postgresql" {
|
||||||
|
example = "postgresql_15";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf config.services.postgresql.enable {
|
||||||
services.postgresql.enable = true;
|
services.postgresql.package = cfg.package;
|
||||||
services.postgresqlBackup.enable = true;
|
services.postgresqlBackup.enable = true;
|
||||||
qois.backup-client.includePaths = [ config.services.postgresqlBackup.location ];
|
qois.backup-client.includePaths = [ config.services.postgresqlBackup.location ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,7 +21,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
qois.postgresql.enable = true;
|
services.postgresql.enable = true;
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -48,8 +48,6 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
qois.postgresql.enable = true;
|
|
||||||
|
|
||||||
qois.backup-client.includePaths = [ config.services.vaultwarden.config.DATA_FOLDER ];
|
qois.backup-client.includePaths = [ config.services.vaultwarden.config.DATA_FOLDER ];
|
||||||
|
|
||||||
services.postgresql =
|
services.postgresql =
|
||||||
|
@ -57,6 +55,7 @@ with lib;
|
||||||
name = config.users.users.vaultwarden.name;
|
name = config.users.users.vaultwarden.name;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
enable = true;
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
Loading…
Reference in a new issue