main
nix 60 lines 1.13 KB
Raw
1 {
2 lib,
3 modulesPath,
4 pkgs,
5 ...
6 }:
7
8 {
9 imports = [
10 "${modulesPath}/installer/scan/not-detected.nix"
11 ../common.nix
12 ./boot.nix
13 ./network.nix
14 ./postgresql.nix
15 ];
16
17 networking = {
18 hostId = "83c81a23";
19 hostName = "haumea";
20 domain = "nixos.org";
21 };
22
23 environment.systemPackages = [ pkgs.lz4 ];
24
25 fileSystems."/" = {
26 device = "rpool/safe/root";
27 fsType = "zfs";
28 };
29
30 fileSystems."/boot" = {
31 device = "/dev/disk/by-label/boot0";
32 fsType = "ext4";
33 };
34
35 fileSystems."/nix" = {
36 device = "rpool/local/nix";
37 fsType = "zfs";
38 };
39
40 fileSystems."/var/db/postgresql" = {
41 device = "rpool/safe/postgres";
42 fsType = "zfs";
43 };
44
45 services.zfs.autoScrub.enable = true;
46
47 nix.settings.max-jobs = lib.mkDefault 16;
48
49 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
50
51 system.stateVersion = "14.12";
52
53 users.users.root.openssh.authorizedKeys.keys =
54 with (import ../../keys.nix);
55 ssh.groups.infra-core # maybe this isn't needed to add (again)?
56 # experiments with the old Hydra's DB
57 ++ ssh.users.brianmcgee
58 ++ ssh.users.conni2461
59 ++ ssh.users.ericson2314;
60 }