-
Notifications
You must be signed in to change notification settings - Fork 1
/
hive.nix
86 lines (73 loc) · 3.08 KB
/
hive.nix
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
let
demo = import ./machines/demo.nix;
regtest = import ./machines/regtest.nix;
mainnet = import ./machines/mainnet.nix;
in {
meta = {
nixpkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/f214b8c9455e90b70bafd4ed9a58d448c243e8bb.tar.gz";
sha256 = "0y87pmfgpglzr2ma3iq9czcmr3air8zj87qanm19vs4n3w5krgwz";
}) {};
};
defaults = { pkgs, ... }: {
deployment = {
targetUser = "elsirion";
};
environment.systemPackages = with pkgs; [
vim wget curl tmux htop jq
];
users = {
mutableUsers = false;
users.elsirion = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
(builtins.readFile ./id_rsa.pub)
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII9H+Ls/IS8yOTvUHS6e5h/EXnn5V3mg23TlqcSExiUk [email protected]" # TODO: create separate account
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3aMTG1hzTO0+v5e7hlh6kkOkSCQbReJMZC/w8bFR/JwHUxuPtw1zNIvQuzofoqv/AeMBZFTzmNbN3IVsWRO3UoVkE6BIHqggzqf1jjI78hnmGqktKn1SltxZ/j0JkO++5YWU/ItkifB5czPnMgWcQl7860jNeNK/OiPSCCpiMvdu6c7UEjFr4O1JrACRAavohQE4dcHQ1LyZ99RzCMICSS0OFoarxJkxFg9+TOrq2jmUv4Z4faPT5WMdwXJ3dTmaGBlT1JddWR+BxDeeXWHx0p90T2oWmROnBJx/d5KGReXSFQzOj6irI3J9k5x1sGBlBLq/n4L8fBgnW+g0Ih+uMm8w5iocCuOsHxyDZIViziMLe2LQPIUovgpgTgKMuGxPYeUMxTOjHDqzdAfHU8yTZKVwS1KPzYVxbQaLK9kNUZtjsKQbkLC3aFr85GfJEhBO+6tzaN6ia491aSna4l+lI6Y7iHDJ/Ed918GBygln5uLpp8glDcxWRAQCaXmADamc= deployserver"
];
hashedPassword = "$6$.FhPAweWIPA4A$5JrQXS/TAvscjjaPj1b2OhPPeb0VJiKKFQk00.FogspSp3HLXkMAnC8mPO92TRwBJePPXXObQbl.FQ6GVNQWI/";
};
};
time.timeZone = "UTC";
nix.trustedUsers = [ "root" "@wheel" ];
security.sudo.wheelNeedsPassword = false;
services.openssh.enable = true;
};
fm-signet = import ./machines/fm-signet.nix;
sigpay = import ./machines/sigpay.nix;
demo-alpha = demo {
hostName = "alpha";
hashedPassword = "$6$hzIRKLk8LIKxm0PT$XHEkBRfYy45AW7evbA8lrdMq64mcBwsKjZ6tHzbJgHFaYNgTvoAR6GdQj.XhYmguXGscrTaJLMlAeDG9KrAyt.";
ip = "45.61.184.243";
};
demo-bravo = demo {
hostName = "bravo";
hashedPassword = "$6$gZIBwt.fHujNo0xY$dLqq.0ae8Pfxe8qYYrKIPC6sK8Jl04AllEcSgLm6fTMiAXzE.cacN4AwEeOsMMHXeHJIrSrvYtIDAVbBy/YDC0";
ip = "45.61.186.63";
};
demo-charlie = demo {
hostName = "charlie";
hashedPassword = "$6$eKwsHabyXiTNQCfn$RM3IYTxOuJW8Zlqoa8bi03CqYP0wFqXCg0c6uN6twUWOunJploYk43WWnvDfC0XeHRht1NmBSMUZOw.zcG5Be.";
ip = "45.61.186.157";
};
demo-delta = demo {
hostName = "delta";
hashedPassword = "$6$k6QJK/nyCbKEhAU.$ZEDh6dP1t7dC0kJTmWZwlumQRrIFvMcJFxb1r1hNo0..dXq3ftfzcNn2/DtvbaKqMqju6ErxK3LRIyrSImOJu0";
ip = "45.61.185.226";
};
regtest-alpha = regtest {
hostName = "alpha";
ip = "45.61.188.218";
};
regtest-bravo = regtest {
hostName = "bravo";
ip = "45.61.186.165";
};
mainnet-dec30 = mainnet {
hostName = "mainnet-dec30";
fqdn = "dec30.mainnet.sirion.io";
githash = "6b01d8f93c8b166073b383cb7ac7c702154d71ce";
nixhash = "sha256:0dz211wvbqjpiq94581gp326zwzvl8wshnda28dwshwz316v8jxb";
};
}