[nixos] Refactor boot config into distinct hardware groups
This commit is contained in:
parent
9961a0b7ac
commit
43ff2173d9
|
@ -4,15 +4,7 @@
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
config = {
|
config = {
|
||||||
boot.initrd.luks.reusePassphrases = true;
|
boot.initrd.luks.reusePassphrases = true;
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" "amdgpu" ];
|
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" "amdgpu" ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" "v4l2loopback" ];
|
boot.kernelModules = [ "kvm-amd" "v4l2loopback" ];
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages
|
|
||||||
; [ v4l2loopback ];
|
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options v4l2loopback devices=2 video_nr=8,9 card_label="Wayland 8,Wayland 9" exclusive_caps=1
|
|
||||||
'';
|
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"fs.inotify.max_user_watches" = "1310720";
|
"fs.inotify.max_user_watches" = "1310720";
|
||||||
"fs.inotify.max_user_instances" = "8192";
|
"fs.inotify.max_user_instances" = "8192";
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
./futros.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
./futros.nix
|
||||||
./scanberry.nix
|
./scanberry.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ];
|
||||||
|
config = {
|
||||||
|
boot.initrd.availableKernelModules = [ "r8169" "nvme" "ehci_pci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" "amdgpu" ];
|
||||||
|
boot.initrd.kernelModules = [ "dm-snapshot" "r8169"];
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,14 @@
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
config = {
|
config = {
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" "amdgpu" ];
|
||||||
|
boot.initrd.kernelModules = [ "dm-snapshot" "amdgpu" ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" "v4l2loopback" ];
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages
|
||||||
|
; [ v4l2loopback ];
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
options v4l2loopback devices=2 video_nr=8,9 card_label="Wayland 8,Wayland 9" exclusive_caps=1
|
||||||
|
'';
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.keyboard.zsa.enable = true;
|
hardware.keyboard.zsa.enable = true;
|
||||||
hardware.logitech.wireless.enable = true;
|
hardware.logitech.wireless.enable = true;
|
||||||
|
|
Loading…
Reference in New Issue