diff --git a/kernel/guest-setup/fedora.md b/kernel/guest-setup/fedora.md index 995352cca..254e01bad 100644 --- a/kernel/guest-setup/fedora.md +++ b/kernel/guest-setup/fedora.md @@ -30,3 +30,14 @@ sudo dnf install microsoft-edge-beta ``` ## 将默认的文件系统记得换一下 + +btrfs 感觉问题很大啊 + +## 切换内核 + + +sudo dnf copr enable kwizart/kernel-longterm-5.15 fedora-38-x86_64 + +https://copr.fedorainfracloud.org/coprs/kwizart/kernel-longterm-5.15/ + +这个方法不好用,还不如直接下载 rpm 来安装的 diff --git a/kernel/guest-setup/oe23.sh b/kernel/guest-setup/oe23.sh index 4bf21914c..445a9ca79 100644 --- a/kernel/guest-setup/oe23.sh +++ b/kernel/guest-setup/oe23.sh @@ -168,7 +168,8 @@ install libtool install systemd-devel install bcc -install vim htop perf elfutils elfutils-libelf-devel iperf3 +install vim htop perf elfutils elfutils-libelf-devel iperf3 sysstat + install pam-devel install numactl fio libaio-devel diff --git a/nixpkgs/home/cli.nix b/nixpkgs/home/cli.nix index 67e5c5d58..3973c3ab6 100644 --- a/nixpkgs/home/cli.nix +++ b/nixpkgs/home/cli.nix @@ -26,6 +26,7 @@ in # libguestfs # libguestfs-appliance cloud-utils + imagemagick # 压缩照片 adoptopenjdk-icedtea-web ccls cargo @@ -35,6 +36,9 @@ in ov # feature rich pager # zig dracut + iw + termshark + openvswitch gnumake audit # 没啥意义,用不起来 yarn diff --git a/nixpkgs/home/gui.nix b/nixpkgs/home/gui.nix index 5669eae5d..7a2ff4ed5 100644 --- a/nixpkgs/home/gui.nix +++ b/nixpkgs/home/gui.nix @@ -24,6 +24,7 @@ in # variety # wallpaper 但是 bing wallpaper 已经够好了 kitty wezterm + wireshark unstable.alacritty # zoom-us # spotify diff --git a/nixpkgs/system.nix b/nixpkgs/system.nix index 9089b2caa..65425ff2e 100644 --- a/nixpkgs/system.nix +++ b/nixpkgs/system.nix @@ -326,7 +326,8 @@ in # programs.steam.enable = true; # steam 安装 # @todo 加入的 vfio 参考 https://gist.github.com/CRTified/43b7ce84cd238673f7f24652c85980b3 不过他的感觉也是瞎写的 - boot.kernelModules = [ "vfio_pci" "vfio_iommu_type1" "vmd" "null_blk" "scsi_debug" ]; + boot.kernelModules = [ "vfio_pci" "vfio_iommu_type1" + "vmd" "null_blk" "scsi_debug" "vhost_net" ]; boot.initrd.kernelModules = []; boot.blacklistedKernelModules = [ "nouveau" ]; diff --git a/scripts/systemd/martins3.config b/scripts/systemd/martins3.config index fb7533e1c..b6ac21ab1 100644 --- a/scripts/systemd/martins3.config +++ b/scripts/systemd/martins3.config @@ -589,3 +589,6 @@ CONFIG_ZSTD_COMPRESS=y CONFIG_HOTPLUG_PCI_ACPI=y # CONFIG_HOTPLUG_PCI_ACPI_IBM is not set + +CONFIG_NET_DEVLINK=y +CONFIG_NETDEVSIM=y