-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployer.nix
75 lines (65 loc) · 1.66 KB
/
deployer.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
{config, ...}: {
flake.nixosModules.deployer = {pkgs, ...}: {
imports = [config.flake.nixosModules.serve-runs];
aws.instance.tags.Role = "deployer";
fileSystems."/home" = {
device = "/dev/nvme1n1";
fsType = "ext4";
autoFormat = true;
autoResize = true;
};
fileSystems."/".autoResize = true;
swapDevices = [
{
device = "/home/swapfile";
size = 32 * 1024;
discardPolicy = "both";
}
];
systemd.services.mkfs-dev-sdh.after = ["network-online.target"];
environment.systemPackages = with pkgs; [
(ruby.withPackages (ps: with ps; [sequel pry sqlite3 nokogiri]))
screen
sqlite-interactive
tmux
gnupg
pinentry
];
users.users.dev = {
isNormalUser = true;
createHome = true;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.screen.screenrc = ''
autodetach on
bell "%C -> %n%f %t Bell!~"
bind .
bind \\
bind ^\
bind e mapdefault
crlf off
defmonitor on
defscrollback 1000
defscrollback 10000
escape ^aa
hardcopy_append on
hardstatus alwayslastline "%{b}[ %{B}%H %{b}][ %{w}%?%-Lw%?%{b}(%{W}%n*%f %t%?(%u)%?%{b})%{w}%?%+Lw%?%?%= %{b}][%{B} %Y-%m-%d %{W}%c %{b}]"
maptimeout 5
msgwait 2
pow_detach_msg "BYE"
shelltitle "Shell"
silencewait 15
sorendition gk #red on white
startup_message off
vbell_msg " *beep* "
vbell off
'';
nix = {
nrBuildUsers = 36;
settings.system-features = ["recursive-nix" "nixos-test" "benchmark"];
};
};
}