{ config, ... }: { # Include the results of the hardware scan. imports = [ ./generated.nix ]; # Add support of usb boot.initrd.availableKernelModules = [ "usb_storage" ]; # Enable containers # See: https://github.com/NixOS/nixpkgs/issues/38676 boot.kernelModules = [ "veth" ]; boot.extraModulePackages = with config.boot.kernelPackages; [ rtl88x2bu # wifi ]; networking = { useDHCP = false; interfaces = { wlp3s0.useDHCP = true; # wlp11s0f3u2.useDHCP = true; }; }; # extra configs hardware.bluetooth.enable = true; # All monitors in the right order # Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83 services.xserver.xrandrHeads = [ { output = "DP-3"; monitorConfig = '' Option "PreferredMode" "1920x1080" Option "Rotate" "right" ''; } { output = "DP-1"; primary = true; monitorConfig = '' Option "PreferredMode" "2560x1440" ''; } ]; services.logind.extraConfig = '' # don’t shutdown when power button is short-pressed HandlePowerKey=ignore ''; }