Skip to content

Commit 080d964

Browse files
hosts/ni: update hardware configuration
1 parent 78231a5 commit 080d964

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

configs/nixos/ni/disko.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
disko.devices = {
5-
disk.primary = {
5+
disk."${config.hostname}-primary" = {
66
device = disk;
77
type = "disk";
88
content = {

configs/nixos/ni/hardware-configuration.nix

+3-11
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
(modulesPath + "/installer/scan/not-detected.nix")
66
];
77

8-
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
8+
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "uas" "sd_mod" ];
99
boot.initrd.kernelModules = [ ];
10-
boot.kernelModules = [ "kvm-intel" ];
10+
boot.kernelModules = [ "kvm-amd" ];
1111
boot.extraModulePackages = [ ];
1212

1313
# Use the systemd-boot EFI boot loader.
@@ -18,14 +18,6 @@
1818
boot.loader.efi.canTouchEfiVariables = true;
1919

2020
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
21-
hardware.cpu.intel.updateMicrocode =
21+
hardware.cpu.amd.updateMicrocode =
2222
lib.mkDefault config.hardware.enableRedistributableFirmware;
23-
24-
boot.initrd.services.udev.rules = ''
25-
KERNELS=="input0", SUBSYSTEMS=="input", ATTRS{id/product}=="0001", ATTRS{id/vendor}=="0001", ATTRS{id/version}=="ab83", ENV{LIBINPUT_IGNORE_DEVICE}="1"
26-
'';
27-
28-
services.udev.extraRules = ''
29-
KERNELS=="input0", SUBSYSTEMS=="input", ATTRS{id/product}=="0001", ATTRS{id/vendor}=="0001", ATTRS{id/version}=="ab83", ENV{LIBINPUT_IGNORE_DEVICE}="1"
30-
'';
3123
}

configs/nixos/ni/modules/networking/setup.nix

+11-4
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,20 @@ in
104104
# Setting up our network manager of choice.
105105
systemd.network.enable = true;
106106

107-
# Setting up the bond devices.
107+
# Setting up the bond devices. So far it should have 2 Ethernet ports and
108+
# one WiFi interface so it should be bond composed of three interfaces.
108109
systemd.network.networks."40-bond1-dev1" = {
109-
matchConfig.Name = "enp1s0";
110+
matchConfig.Name = "enp3s0";
111+
networkConfig.Bond = "bond1";
112+
};
113+
114+
systemd.network.networks."40-bond1-dev3" = {
115+
matchConfig.Name = "enp2s0";
110116
networkConfig.Bond = "bond1";
111117
};
112118

113119
systemd.network.networks."40-bond1-dev2" = {
114-
matchConfig.Name = "wlp2s0";
120+
matchConfig.Name = "wlp4s0";
115121
networkConfig = {
116122
Bond = "bond1";
117123
IgnoreCarrierLoss = "15";
@@ -123,6 +129,7 @@ in
123129
Name = "bond1";
124130
Kind = "bond";
125131
};
132+
126133
systemd.network.networks."40-bond1" = {
127134
matchConfig.Name = "bond1";
128135
networkConfig.DHCP = "yes";
@@ -154,7 +161,7 @@ in
154161
miimon = "100";
155162
mode = "active-backup";
156163
};
157-
interfaces = [ "enp1s0" "wlp2s0" ];
164+
interfaces = [ "enp2s0" "enp3s0" "wlp4s0" ];
158165
};
159166
})
160167

0 commit comments

Comments
 (0)