blob: b700e832354a94ddc030877c9c82af70b4d06a0a (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
modulesPath,
lib,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
./nginx.nix
# ./jmap.nix
../../users.nix
../../base.nix
../../server.nix
];
boot = {
loader.grub = {
enable = true;
device = "/dev/vda";
};
};
networking = {
hostName = "yn-bkk"; # use Digital Ocean metadata server
};
networking.firewall = {
enable = false;
# allowedTCPPorts = [ 993 465 40308 80 443 53 51820 5522 ];
# allowedUDPPorts = [ 993 465 40308 80 443 53 50000 50001 50002 50003 50004 50005 50006 50007 50008 50009 50010 51820 5522 ];
};
# services.ntfy-sh = {
# enable = true;
# settings = {
# base-url = "https://n.urbit.men";
# listen-http = ":8090";
# };
# };
# services.headscale = {
# enable = true;
# address = "0.0.0.0";
# port = 8001;
# settings = {
# server_url = "https://head.urbit.men";
# dns.baseDomain = "urbit.men";
# logtail.enabled = false;
# };
# };
system.stateVersion = "24.05"; # Did you read the comment?
environment.systemPackages = with pkgs; [
tmux
git
lsd
ncdu
btop
lsof
helix
fzf
];
users.users.y.openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+qXhCHNrSZmy4HEXaFn6xAp1w2GzQBMOfVdbR3E81Q cloudboxes"];
}
|