Files
garandos/modules/core/boot.nix
T
GarandPLG dfe1c77f67 Enable OBS, configure v4l2loopback, update Helium
- Turn on OBS Studio in the user home modules.
- Add modprobe option `exclusive_caps=1` for the v4l2loopback module.
- Bump Helium AppImage to version 0.21.1.1 and update its hash.
2026-11-09 18:42:37 +01:00

40 lines
1.0 KiB
Nix

{
pkgs,
config,
...
}: {
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = ["v4l2loopback"];
extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
extraModprobeConfig = ''
options v4l2loopback exclusive_caps=1
'';
kernel.sysctl = {
"vm.max_map_count" = 2147483642;
};
loader = {
efi.canTouchEfiVariables = true;
limine = {
enable = true;
package = pkgs.limine;
resolution = "1920x1080";
style.interface = {
branding = "GarandOS Bootloader";
brandingColor = "${config.stylix.base16Scheme.base01}";
};
};
};
# Appimage Support
binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
plymouth.enable = true;
};
}