From 80726f425dbbcc56967410dda94f01f08640541a Mon Sep 17 00:00:00 2001 From: kai Date: Thu, 4 Jul 2019 15:38:03 +0200 Subject: [PATCH] add powersaving and thunderbolt support --- configuration.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 66fc38d..f37a46b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,6 +14,14 @@ # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + boot.loader.grub.copyKernels = true; + boot.supportedFilesystems = [ "zfs" ]; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.loader.grub.useOSProber = true; + boot.kernelParams = ["zfs.zfs_arc_max=6884901888" + "nouveau.modeset=0" + "i915.i915_enable_rc6=1" + "i915.i915_enable_fc=1"]; # ntworking.hostName = "nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -22,8 +30,7 @@ # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; networking.networkmanager.enable = true; - boot.loader.grub.useOSProber = true; - boot.kernelParams = ["zfs.zfs_arc_max=6884901888" "nouveau.modeset=0"]; + networking.hostId = "0b4cbd12"; # Select internationalisation properties. i18n = { consoleFont = "Lat2-Terminus16"; @@ -68,14 +75,11 @@ glxinfo nmon htop + gnumake + atop ]; - boot.supportedFilesystems = [ "zfs" ]; - networking.hostId = "0b4cbd12"; - boot.loader.grub.copyKernels = true; - boot.kernelPackages = pkgs.linuxPackages_latest; hardware.opengl.driSupport32Bit = true; - programs.light.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;