This repository has been archived on 2026-03-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nixos/hosts/magicman/configuration.nix
Torjus Håkestad b44d812aec
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m59s
Periodic flake update / flake-update (push) Successful in 2m26s
magicman: add v4l2loopback virtual camera support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:42:53 +01:00

101 lines
2.2 KiB
Nix

{
pkgs,
...
}:
{
imports = [ ./hardware-configuration.nix ];
# Bootloader stuff
boot.kernelParams = [
"acpi_backlight=native"
"video=efifb:nobgrt"
"loglevel=3"
"rd.udev.log_level=3"
];
boot.extraModprobeConfig = ''
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
'';
boot.loader.systemd-boot.configurationLimit = 3;
boot.initrd.systemd.enable = true;
boot.plymouth = {
enable = true;
themePackages = with pkgs; [ catppuccin-plymouth ];
theme = "catppuccin-macchiato";
extraConfig = ''
UseFirmwareBackground=false
'';
};
# Networking stuff
networking.hostName = "magicman"; # Define your hostname.
networking.networkmanager.wifi.backend = "iwd";
hardware = {
enableRedistributableFirmware = true;
enableAllFirmware = true;
# Enable opengl
graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
libva-vdpau-driver
libvdpau-va-gl
];
};
};
# Host capabilities
host.capabilities = {
hasCuda = false;
hasBattery = true;
formFactor = "laptop";
volumeScrollStep = 1;
enableArrhist = false;
hasEduroamAccess = true;
backupRepository = null;
backupPassword = null;
};
# Bluetooth stuff
services.blueman.enable = true;
hardware.bluetooth.enable = true;
services.pipewire.wireplumber.extraConfig = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [
"hsp_hs"
"hsp_ag"
"hfp_hf"
"hfp_ag"
];
};
};
# TRIM
services.fstrim.enable = true;
programs.steam.enable = true;
# Install system-wide packages
environment.systemPackages = with pkgs; [
vim
wget
curl
git
v4l-utils
];
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11"; # Did you read the comment?
}