main
1{
2 globals,
3 inputs,
4 lib,
5 ...
6}:
7{
8 imports = [
9 inputs.disko.nixosModules.disko
10 (import ./disks.nix { inherit lib; })
11
12 inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-12th-gen
13
14 ../common/hardware/acpid.nix
15 ../common/hardware/bluetooth.nix
16 ../common/services/nfs-mounts.nix
17 ];
18
19 swapDevices = [
20 {
21 device = "/swapfile";
22 size = 8 * 1024; # 8GB
23 }
24 ];
25
26 hardware = {
27 # opengl.extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl intel-media-driver ];
28 };
29
30 # NFS mounts from globals defaults (rhea + aion)
31 services.nfs-mounts.hosts = globals.net.nfs.defaultHosts;
32
33 # NFS mounts from synodine (NFSv3)
34 fileSystems."/net/synodine/usbshare" = {
35 device = "synodine.home:/volumeUSB2/usbshare";
36 fsType = "nfs";
37 options = [
38 "nfsvers=3"
39 "x-systemd.automount"
40 "noauto"
41 "x-systemd.idle-timeout=600"
42 "soft"
43 "_netdev"
44 ];
45 };
46
47 fileSystems."/net/synodine/downloads" = {
48 device = "synodine.home:/volume1/downloads";
49 fsType = "nfs";
50 options = [
51 "nfsvers=3"
52 "x-systemd.automount"
53 "noauto"
54 "x-systemd.idle-timeout=600"
55 "soft"
56 "_netdev"
57 ];
58 };
59
60 fileSystems."/net/synodine/video" = {
61 device = "synodine.home:/volume1/video";
62 fsType = "nfs";
63 options = [
64 "nfsvers=3"
65 "x-systemd.automount"
66 "noauto"
67 "x-systemd.idle-timeout=600"
68 "soft"
69 "_netdev"
70 ];
71 };
72}