From d69c19a94c1db8226cf44ac93745eeeaad42220b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 22 Aug 2024 16:57:30 +0000 Subject: [PATCH] chore: move postgresql config to own file --- configuration.nix | 1 + postgresql.nix | 3 +++ sourcehut.nix | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 postgresql.nix diff --git a/configuration.nix b/configuration.nix index 9bb5411..90ba2da 100644 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,7 @@ in (import ./acme.nix { inherit base-domain; }) (import ./nginx.nix { inherit base-domain; }) (import ./sourcehut.nix { inherit base-domain; }) + ./postgresql.nix ./userprogs.nix ]; diff --git a/postgresql.nix b/postgresql.nix new file mode 100644 index 0000000..7be5030 --- /dev/null +++ b/postgresql.nix @@ -0,0 +1,3 @@ +{ + services.postgresql.enable = true; +} diff --git a/sourcehut.nix b/sourcehut.nix index 5dba45d..9d8e4c1 100644 --- a/sourcehut.nix +++ b/sourcehut.nix @@ -42,6 +42,4 @@ in webhooks.private-key = "/etc/nixos/secrets/sourcehut/webhook.key"; }; }; - - services.postgresql.enable = true; }