Compare commits

..

2 Commits

Author SHA1 Message Date
Sam 5d0b1b9be7 Merge branch 'master' of git.bitlab21.com:sam/nixos 2024-11-01 22:17:35 +00:00
Sam 7be587d7b1 Update Postgres configuration and remove system packages
- Update Postgres configuration for dev and prod environments:
  - Change dbname from `dev_baseddata_models` to `dev_baseddata` and `baseddata_models` to `baseddata`
  - Replace host variable with `${baseddataPostgresIp}`
  - Update user and password placeholders to new paths
- Remove `environment.systemPackages` configuration
2024-11-01 22:17:24 +00:00
1 changed files with 8 additions and 12 deletions

View File

@ -107,23 +107,23 @@ in {
target: dev target: dev
outputs: outputs:
dev: dev:
dbname: dev_baseddata_models dbname: dev_baseddata
host: ${config.sops.placeholder."software/postgres/baseddata_models/ip"} host: ${baseddataPostgresIp}
pass: '${config.sops.placeholder."software/postgres/baseddata_models/password"}' pass: '${config.sops.placeholder."software/postgres/baseddata/user_password"}'
port: 5432 port: 5432
schema: models schema: models
threads: 6 threads: 6
type: postgres type: postgres
user: ${config.sops.placeholder."software/postgres/baseddata_models/username"} user: ${config.sops.placeholder."software/postgres/baseddata/user_username"}
prod: prod:
dbname: baseddata_models dbname: baseddata
host: ${config.sops.placeholder."software/postgres/baseddata_models/ip"} host: ${baseddataPostgresIp}
pass: '${config.sops.placeholder."software/postgres/baseddata_models/password"}' pass: '${config.sops.placeholder."software/postgres/baseddata/user_password"}'
port: 5432 port: 5432
schema: models schema: models
threads: 6 threads: 6
type: postgres type: postgres
user: ${config.sops.placeholder."software/postgres/baseddata_models/username"} user: ${config.sops.placeholder."software/postgres/baseddata/user_username"}
''; '';
}; };
@ -160,8 +160,4 @@ in {
${username} = import ../../../../home/${hostname}.nix; ${username} = import ../../../../home/${hostname}.nix;
}; };
}; };
environment.systemPackages = [
#inputs.sqlfmt.packages.x86_64-linux.sqlfmt
];
} }