46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{
|
||
config,
|
||
lib,
|
||
pkgs,
|
||
modulesPath,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = ["sdhci_pci"];
|
||
boot.initrd.kernelModules = [];
|
||
boot.kernelModules = [
|
||
"v4l2loopback"
|
||
"snd-aloop"
|
||
];
|
||
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback.out];
|
||
boot.extraModprobeConfig = ''
|
||
# exclusive_caps: Skype, Zoom, Teams etc. will only show device when actually streaming
|
||
# card_label: Name of virtual camera, how it'll show up in Skype, Zoom, Teams
|
||
# https://github.com/umlaeute/v4l2loopback
|
||
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
|
||
'';
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-label/NixOS";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-label/EFI";
|
||
fsType = "vfat";
|
||
options = [
|
||
"fmask=0022"
|
||
"dmask=0022"
|
||
];
|
||
};
|
||
|
||
swapDevices = [];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||
}
|