You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
{ config, ... }:
|
|
|
|
{
|
|
imports = [ (import ./hardware-configuration.nix) ];
|
|
|
|
services.xserver = {
|
|
videoDrivers = [ "nvidia" ];
|
|
# nvidiaXineramaInfoOrder sets primary display
|
|
# DFP-0 is default and would set left monitor, DVI-D-0, to be primary
|
|
screenSection = ''
|
|
Option "metamodes" "DVI-D-0: 1920x1080 +0+0, HDMI-0: 1920x1080 +1920+0, DP-3: 1920x1080 +1920+0"
|
|
Option "nvidiaXineramaInfoOrder" "DFP-1"
|
|
'';
|
|
};
|
|
|
|
services.blueman.enable = true;
|
|
|
|
services.tailscale.enable = true;
|
|
networking.firewall = {
|
|
checkReversePath = "loose";
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
|
};
|
|
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true; # Required for Touhou
|
|
};
|
|
|
|
boot.loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
grub = {
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
useOSProber = true;
|
|
};
|
|
};
|
|
|
|
# Support mounting NTFS partition
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
}
|