main
 1{
 2  inputs,
 3  lib,
 4  config,
 5  ...
 6}:
 7{
 8  imports = [
 9    inputs.disko.nixosModules.disko
10    (import ./disks.nix { inherit lib; })
11  ];
12  fileSystems."/" = {
13    device = "/dev/disk/by-uuid/73fd8864-f6af-4fdd-b826-0dfdeacd3c19";
14    fsType = "ext4";
15    options = [
16      "noatime"
17      "discard"
18    ];
19  };
20
21  fileSystems."/boot" = {
22    device = "/dev/disk/by-uuid/829D-BFD1";
23    fsType = "vfat";
24  };
25
26  # Extra data
27  # HDD:   b58e59a4-92e7-4278-97ba-6fe361913f50
28  fileSystems."/data" = {
29    device = "/dev/disk/by-uuid/b58e59a4-92e7-4278-97ba-6fe361913f50";
30    fsType = "ext4";
31    options = [ "noatime" ];
32  };
33  # ZFS Pool
34  # SSD1:  469077df-049f-4f5d-a34f-1f5449d782ec
35  # SSD2:  e11a3b63-791c-418b-9f4b-5ae0199f1f97
36  # NVME2: 3d2dff80-f2b1-4c48-8e76-12b01fdf4137
37  # boot.zfs.extraPools = [ "tank" ];
38  # networking.hostId = "03129692bea040488878aa0133e54914";
39  # networking.hostId = "03129692";
40  # fileSystems."/tank/data" =
41  #   {
42  #     device = "tank/data";
43  #     fsType = "zfs";
44  #     options = [ "zfsutil" ];
45  #   };
46  #
47  # fileSystems."/tank/virt" =
48  #   {
49  #     device = "tank/virt";
50  #     fsType = "zfs";
51  #     options = [ "zfsutil" ];
52  #   };
53
54  swapDevices = [
55    {
56      device = "/dev/disk/by-uuid/a9ec44e6-0c1d-4f60-9f5c-81a7eaa8e8fd";
57    }
58  ];
59
60  networking = {
61    hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
62    # Bridge setup
63    bridges.br1.interfaces = [ "enp0s31f6" ];
64    useDHCP = false;
65    interfaces.br1 = {
66      useDHCP = true;
67    };
68    # FIXME probably change this
69    firewall.enable = false; # we are in safe territory :D
70  };
71  hardware.nvidia = {
72    modesetting.enable = true;
73    open = false;
74    nvidiaSettings = true;
75    package = config.boot.kernelPackages.nvidiaPackages.stable;
76  };
77  hardware.graphics = {
78    enable = true;
79  };
80  nixpkgs.config.allowUnfree = true;
81}