forked from arianvp/nixos-vultr-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 6
/
configuration.nix
83 lines (68 loc) · 1.21 KB
/
configuration.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
{ config, pkgs, ...}:
{
imports = [
./hardware-configuration.nix
];
boot = {
kernel = {
sysctl."vm.overcommit_memory" = "1";
};
loader = {
grub.device = "/dev/vda";
grub.enable = true;
grub.version = 2;
};
};
environment = {
systemPackages = with pkgs; [
curl
gcc
git
nix-repl
tmux
vim
wget
];
variables = {
EDITOR = "vim";
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
};
networking = {
hostName = "merkle";
};
nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
};
programs = {
bash = {
enableCompletion = true;
};
ssh = {
startAgent = true;
};
};
services = {
openssh = {
enable = true;
permitRootLogin = "prohibit-password";
};
};
time.timeZone = "America/New_York";
users = {
extraUsers = {
ghost = {
extraGroups = [ "wheel" ];
isNormalUser = true;
openssh.authorizedKeys.keys = with import ./ssh-keys.nix; [ sean ];
};
root = {
openssh.authorizedKeys.keys = with import ./ssh-keys.nix; [ sean ];
};
};
};
system.stateVersion = "18.03";
}