-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.nix
61 lines (52 loc) · 1023 Bytes
/
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
{ config, pkgs, ... }:
{
imports = [
# Add hardware scan configuration.
./hardware-configuration.nix
# Add environment settings.
./environment.nix
# Add packages.
./packages.nix
# Add glusetrfs
./glusterfs.nix
# Add mounts
./mounts.nix
# Add users
./users.nix
];
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
nixpkgs.config = {
allowUnfree = true;
};
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
services = {
journald = {
extraConfig = ''
SystemMaxUse=50M
'';
};
openssh = {
enable = true;
passwordAuthentication = false;
};
};
system = {
autoUpgrade = {
channel= "https://nixos.org/channels/nixos-21.11";
enable = true;
allowReboot = true;
};
stateVersion = "21.11";
};
time.timeZone = "America/Toronto";
virtualisation.docker = {
enable = true;
liveRestore = false;
};
}