From 414373b98cd3fe83d4d381aa88aa0fc43445835b Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:06:29 +0200 Subject: [PATCH] Add postgres local database --- nixos-configurations/laptop/default.nix | 12 +++++++++++- nixos-configurations/shared-desktop.nix | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nixos-configurations/laptop/default.nix b/nixos-configurations/laptop/default.nix index be61cf3..4207ba2 100644 --- a/nixos-configurations/laptop/default.nix +++ b/nixos-configurations/laptop/default.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }: { imports = [ @@ -11,6 +11,16 @@ boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; + services.postgresql = { + enable = true; + package = pkgs.postgresql_15; + ensureDatabases = [ "dcbot" ]; + authentication = pkgs.lib.mkOverride 10 '' + #type database DBuser auth-method + local all all trust + ''; + }; + home-manager.users.thiloho = { pkgs, ... }: { programs.git.signing.key = "E78D9CC2F9EFC890"; home.stateVersion = "23.05"; diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index a7b3621..9511408 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -50,9 +50,10 @@ jnoortheen.nix-ide ritwickdey.liveserver astro-build.astro-vscode + dbaeumer.vscode-eslint ]; userSettings = { - "editor.tabSize" = 2; + "editor.tabSize" = 4; "nix.enableLanguageServer" = true; "nix.serverPath" = "nil"; };