about summary refs log tree commit diff
path: root/machines/mmrnmhrm.nix
blob: a765918eda0a02d4bb58bdd01a13da50d1505d2f (plain) (blame)
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
{config, pkgs, ...}:

with pkgs.lib;

{
  require = singleton ../common.nix;

  boot = let
    linuxAszlig = pkgs.linuxManualConfig {
      version = pkgs.kernelSourceAszlig.version;
      src = pkgs.kernelSourceAszlig.src;
      configfile = pkgs.fetchurl {
        name = "aszlig.kconf";
        url = "file:///home/aszlig/linux/.config";
        md5 = "0c632194689797846127b47fa135c516";
      };
      allowImportFromDerivation = true; # XXX
    };
  in rec {
    kernelPackages = pkgs.linuxPackagesFor linuxAszlig kernelPackages;

    initrd = {
      luks.enable = true;
      luks.devices = [
        { name = "system_crypt";
          device = "/dev/disk/by-uuid/91fbc437-b191-4c32-add4-6f96b2c953dd";
          preLVM = true;
        }
      ];
    };

    loader.grub.devices = [
      "/dev/disk/by-id/ata-WDC_WD10EAVS-00D7B1_WD-WCAU48931237"
    ];
  };

  networking.hostName = "mmrnmhrm";

  fileSystems = {
    "/boot" = {
      label = "boot";
      fsType = "ext2";
    };
    "/" = {
      device = "/dev/system/root";
      fsType = "btrfs";
      options = concatStringsSep "," [
        "autodefrag"
        "space_cache"
        "inode_cache"
        "compress=lzo"
        "noatime"
      ];
    };
  };

  swapDevices = singleton {
    device = "/dev/system/swap";
  };

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