Skip to content

Commit

Permalink
feat(nixos): run postgres on darkstar
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 19, 2023
1 parent 4d6b8c3 commit 8254a43
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions machines/darkstar.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ ... }:
{ pkgs, ... }:
{
imports =
[
./shared.nix
/etc/nixos/hardware-configuration.nix
];

networking.hostName = "darkstar"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.hostName = "darkstar";

# setup docker
virtualisation.docker.enable = true;
users.users.carlos.extraGroups = [ "docker" ];

services.postgresql = {
enable = true;
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
Expand Down

0 comments on commit 8254a43

Please sign in to comment.