From 49d8b928b2482a4cbea3adf8eeeebb4e46b65ae2 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 1 Jan 2023 08:10:18 -0500 Subject: [PATCH] chore: code cleanup --- configuration.nix | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/configuration.nix b/configuration.nix index 51aaf62..ea6c94f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -30,8 +30,6 @@ networking.networkmanager.enable = true; networking.nameservers = [ "192.168.1.45" ]; - - hardware.opentabletdriver.enable = true; # pihole environment.etc = { @@ -100,6 +98,24 @@ auth include login ''; }; + + hardware = { + nvidia = { + powerManagement.enable = true; + modesetting.enable = true; + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + opengl = { + enable = true; + extraPackages = with pkgs; [ + nvidia-vaapi-driver + ]; + }; + opentabletdriver = { + enable = true; + daemon.enable = true; + }; + }; users = { defaultUserShell = pkgs.nushell; @@ -257,20 +273,6 @@ channel = "https://nixos.org/channel/nixos-unstable"; }; - hardware = { - nvidia = { - powerManagement.enable = true; - modesetting.enable = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - opengl = { - enable = true; - extraPackages = with pkgs; [ - nvidia-vaapi-driver - ]; - }; - }; - nixpkgs.config.permittedInsecurePackages = [ "qtwebkit-5.212.0-alpha4" "electron-12.2.3"