main
1{
2 globals,
3 ...
4}:
5{
6 imports = [
7 ../common/hardware/acpid.nix
8 ../common/services/nfs-mounts.nix
9 ];
10 fileSystems."/" = {
11 device = "/dev/disk/by-uuid/92ce650d-873e-41c1-a44e-71c2b9191b9d";
12 fsType = "ext4";
13 options = [
14 "noatime"
15 "discard"
16 ];
17 };
18 fileSystems."/boot" = {
19 device = "/dev/disk/by-uuid/B226-075A";
20 fsType = "vfat";
21 };
22 fileSystems."/home" = {
23 device = "/dev/disk/by-uuid/4f614c00-d94d-42f9-8386-3ecd396aa246";
24 fsType = "ext4";
25 options = [
26 "noatime"
27 "discard"
28 ];
29 };
30 fileSystems."/mnt/gaia" = {
31 device = "/dev/disk/by-uuid/88d3d686-d451-4ba9-bd6e-373601ed2683";
32 fsType = "ext4";
33 options = [ "noatime" ];
34 };
35 fileSystems."/mnt/toshito" = {
36 device = "/dev/disk/by-uuid/3c7cf84e-2486-417d-9de8-4b7757d483e4";
37 fsType = "ext4";
38 options = [ "noatime" ];
39 };
40
41 fileSystems."/export/gaia" = {
42 device = "/mnt/gaia";
43 fsType = "none";
44 options = [ "bind" ];
45 };
46 fileSystems."/export/toshito" = {
47 device = "/mnt/toshito";
48 fsType = "none";
49 options = [ "bind" ];
50 };
51
52 swapDevices = [ { device = "/dev/disk/by-uuid/9eb067d1-b329-4fbb-ae27-38abfbe7c108"; } ];
53
54 # NFS mounts from globals defaults (rhea + aion)
55 services.nfs-mounts.hosts = globals.net.nfs.defaultHosts;
56
57 networking = {
58 firewall.enable = false; # we are in safe territory :D
59 bridges.br1.interfaces = [ "enp0s31f6" ];
60 useDHCP = false;
61 interfaces.br1 = {
62 useDHCP = true;
63 };
64 };
65}