summaryrefslogtreecommitdiff
path: root/ilex/configuration.nix
diff options
context:
space:
mode:
authorstuebinm2023-01-27 20:37:46 +0100
committerstuebinm2023-01-27 20:37:46 +0100
commit69247cdf75796c69372a17d09beb1466315b1839 (patch)
tree7068b3d9ce9b3e4f7ced1d0614505f66f961d09e /ilex/configuration.nix
parente3a7cbc9bf986d0f27b4808b12899548a4a552c3 (diff)
working uffd on ilex for testing oauth2uffd-on-ilex
(just keeping this in a seperate branch in case i ever need it again)
Diffstat (limited to 'ilex/configuration.nix')
-rw-r--r--ilex/configuration.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/ilex/configuration.nix b/ilex/configuration.nix
index 866b1e3..b06a385 100644
--- a/ilex/configuration.nix
+++ b/ilex/configuration.nix
@@ -7,8 +7,26 @@
{
imports = [
./hardware-configuration.nix
+ ./uffd-service.nix
];
+
+ services.postgresql = {
+ enable = true;
+
+ ensureDatabases = [ "tracktrain" ];
+ ensureUsers = [ {
+ name = "stuebinm";
+ ensurePermissions = {
+ "DATABASE tracktrain" = "ALL PRIVILEGES";
+ };
+ } ];
+ authentication = ''
+ local all all trust
+ host all all 127.0.0.1/32 trust
+ '';
+ };
+
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_0;
# Use the systemd-boot EFI boot loader.