summaryrefslogtreecommitdiff
path: root/host/obelix.nix
blob: 477819c19e762e0229beef33ac7a8a7246c102d5 (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
{ pkgs, ... }:

{
  imports = [
    ./hardware/obelix.nix
    ./software/desktop
  ];

  boot = {
    loader.grub = {
      enable  = true;
      version = 2;
      device  = "/dev/sdb";
      extraConfig = ''
        set gfxpayload=1920x1200x32
      '';
    };

    initrd.luks.devices = [ {
      name   = "root";
      device = "/dev/disk/by-uuid/6205da24-b1b2-402c-b175-4036e678dea9";
      preLVM        = true;
      allowDiscards = true;
    } ];
  };

  networking = {
    hostName = "obelix";
    firewall.enable = false;
  };

  services.xserver.videoDrivers = [ "nvidiaBeta" ];
}