From ee10aadfcfaf1aaf4e0394210ba0629920881406 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 22 Oct 2017 19:38:21 +0200 Subject: Add base configuration for prefect --- modules/hardware/mouse.nix | 12 ++++++++++++ modules/hardware/nvidia-gpu.nix | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/hardware/mouse.nix create mode 100644 modules/hardware/nvidia-gpu.nix (limited to 'modules') diff --git a/modules/hardware/mouse.nix b/modules/hardware/mouse.nix new file mode 100644 index 0000000..b30d412 --- /dev/null +++ b/modules/hardware/mouse.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ services.xserver.config = '' + Section "InputClass" + Identifier "Mouse (No Acceleration)" + MatchIsPointer "yes" + MatchIsTouchpad "no" + Option "AccelerationProfile" "-1" + Option "AccelerationScheme" "none" + EndSection + ''; +} diff --git a/modules/hardware/nvidia-gpu.nix b/modules/hardware/nvidia-gpu.nix new file mode 100644 index 0000000..2c49e96 --- /dev/null +++ b/modules/hardware/nvidia-gpu.nix @@ -0,0 +1,6 @@ +{ config, pkgs, ... }: + +{ services.xserver.videoDrivers = [ "nvidia" ]; + hardware.opengl.driSupport32Bit = true; + nixpkgs.config.allowUnfree = true; +} -- cgit 1.4.1