summaryrefslogtreecommitdiffstats
path: root/systems/zu/config.nix
blob: 01e0441a2919c092af5bd7ed11e249e359ab38c1 (plain)
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
{ config, ... }: {
  krebs.build.host = config.krebs.hosts.zu;

  imports = [
    ../../configs/hw/x220.nix
    ../../configs/exim-retiolum.nix
    ../../configs/gitrepos.nix
    ../../configs/mail-client.nix
    ../../configs/man.nix
    ../../configs/nginx/public_html.nix
    ../../configs/pulse.nix
    ../../configs/retiolum.nix
    ../../configs/xserver
  ];

  boot.initrd.luks.devices.zuca.device = "/dev/sda2";

  fileSystems = {
    "/" = {
      device = "/dev/mapper/zuvga-root";
      fsType = "btrfs";
      options = ["defaults" "noatime" "ssd" "compress=lzo"];
    };
    "/bku" = {
      device = "/dev/mapper/zuvga-bku";
      fsType = "btrfs";
      options = ["defaults" "noatime" "ssd" "compress=lzo"];
    };
    "/home" = {
      device = "/dev/mapper/zuvga-home";
      fsType = "btrfs";
      options = ["defaults" "noatime" "ssd" "compress=lzo"];
    };
    "/boot" = {
      device = "/dev/sda1";
    };
  };

  networking.wireless.enable = true;

  services.printing.enable = true;

  #services.bitlbee.enable = true;
  #services.tor.client.enable = true;
  #services.tor.enable = true;

  # The NixOS release to be compatible with for stateful data such as databases.
  system.stateVersion = "15.09";
}