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 ++++++ prefect.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 modules/hardware/mouse.nix create mode 100644 modules/hardware/nvidia-gpu.nix create mode 100644 prefect.nix diff --git a/modules/hardware/mouse.nix b/modules/hardware/mouse.nix new file mode 100644 index 00000000..b30d4124 --- /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 00000000..2c49e964 --- /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; +} diff --git a/prefect.nix b/prefect.nix new file mode 100644 index 00000000..1c786a7d --- /dev/null +++ b/prefect.nix @@ -0,0 +1,41 @@ +{ config, pkgs, ... }: + +{ imports = [ + ./hardware-configuration.nix + + ./modules/configuration/berlin.nix + ./modules/configuration/british-english.nix + ./modules/configuration/nix.nix + ./modules/configuration/user.nix + ./modules/development/base.nix + ./modules/development/javascript.nix + ./modules/development/lisp.nix + ./modules/hardware/adb.nix + ./modules/hardware/audio.nix + ./modules/hardware/bare-metal.nix + ./modules/user-interface.nix + ./modules/hardware/colemak.nix + ./modules/hardware/nitrokey.nix + ./modules/hardware/mouse.nix + ./modules/hardware/systemd-boot.nix + ./modules/hardware/nvidia-gpu.nix + ./modules/programs/accounting.nix + ./modules/programs/dotfiles.nix + ./modules/programs/i3.nix + ./modules/programs/infrastructure.nix + ./modules/programs/passwords.nix + ./modules/programs/shell.nix + ./modules/services/syncthing.nix + ]; + + environment.systemPackages = with pkgs; [ + chromium + ]; + + networking = { + hostName = "prefect"; + domain = "alanpearce.eu"; + }; + + system.stateVersion = "17.09"; +} -- cgit 1.4.1