Skip to content

Commit 3b2ee89

Browse files
author
misumisumi
committed
fix(mother): update machine components
1 parent f913447 commit 3b2ee89

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

machines/mother/system/gpu.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44
xserver = {
55
videoDrivers = [
66
"nvidia"
7+
# "amdgpu"
78
"fbdev"
89
];
910
deviceSection = ''
1011
Driver "nvidia"
1112
VendorName "NVIDIA Corporation"
1213
BoardName "NVIDIA GeForce GTX 1050 Ti"
13-
BusID "PCI:11:0:0"
14+
BusID "PCI:03:0:0"
1415
'';
16+
# deviceSection = ''
17+
# Driver "amdgpu"
18+
# VendorName "AMD"
19+
# BoardName "Radeon Graphics"
20+
# BusID "PCI:0e:0:0"
21+
# '';
1522
screenSection = ''
1623
DefaultDepth 24
1724
Option "Stereo" "0"

machines/mother/system/network.nix

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
networking = {
2323
hostName = "${hostname}";
2424
hostId = "bcf1bfe4";
25-
interfaces.enp5s0.wakeOnLan.enable = true;
25+
# interfaces.enp5s0.wakeOnLan.enable = true;
2626
nftables.enable = true;
2727
firewall = {
2828
enable = true;
@@ -97,9 +97,15 @@
9797
# };
9898
};
9999
networks = {
100-
"10-wired" = {
100+
# "10-wired-2.5G" = {
101+
# matchConfig = {
102+
# MACAddress = "60:cf:84:a1:c1:18"; # 2.5G
103+
# };
104+
# bridge = [ "br0" ];
105+
# };
106+
"10-wired-1.0G" = {
101107
matchConfig = {
102-
MACAddress = "f0:2f:74:dc:3b:4b";
108+
MACAddress = "60:cf:84:a1:c1:19"; # 1G
103109
};
104110
bridge = [ "br0" ];
105111
};

machines/mother/system/virtualisation.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
../../../apps/system/virtualisation/podman
66
../../../apps/system/virtualisation/waydroid
77
];
8+
boot.kernelParams = [ "kvm_amd.avic=1" ];
89
virtualisation = {
910
vfio = {
1011
enable = true;
1112
IOMMUType = "amd";
1213
enableNestedVirtualization = true;
1314
devices = [
14-
"10de:2504"
15-
"10de:228e"
15+
"10de:2c05"
16+
"10de:22e9"
17+
"1e0f:0009"
1618
];
1719
# deviceDomains = [ "0000:09:00.0" "0000:09:00.1" ];
1820
blacklistNvidia = false;

0 commit comments

Comments
 (0)