-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.nix
More file actions
32 lines (28 loc) · 884 Bytes
/
configuration.nix
File metadata and controls
32 lines (28 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Add the following to the Nix configuration:
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
allowedUDPPortRanges = [
{ from = 4000; to = 4007; }
{ from = 8000; to = 8010; }
];
};
#security.acme.acceptTerms = true;
#security.acme.defaults.email = "admin@interlock.network";
# !!! Make sure to CHANGE THE PASSWORD before you deploy !!!
services.postgresql = {
enable = true;
ensureDatabases = [ "galactus" ];
enableTCPIP = true;
port = 5432;
initialScript = pkgs.writeText "backend-initScript" ''
CREATE ROLE galactus WITH LOGIN PASSWORD 'deez_nuts' CREATEDB;
CREATE DATABASE galactus;
GRANT ALL PRIVILEGES ON DATABASE galactus TO galactus;
'';
};
users.users.galactus = {
isNormalUser = true;
description = "galactus";
extraGroups = [ "wheel" "networkmanager" ];
};