diff options
-rw-r--r-- | modules/hardware/mouse.nix | 12 | ||||
-rw-r--r-- | modules/hardware/nvidia-gpu.nix | 6 | ||||
-rw-r--r-- | prefect.nix | 41 |
3 files changed, 59 insertions, 0 deletions
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"; +} |