add powersaving and thunderbolt support

This commit is contained in:
2019-07-04 15:38:03 +02:00
parent ae116b2054
commit 80726f425d

View File

@@ -14,6 +14,14 @@
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = 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. # ntworking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@@ -22,8 +30,7 @@
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
boot.loader.grub.useOSProber = true; networking.hostId = "0b4cbd12";
boot.kernelParams = ["zfs.zfs_arc_max=6884901888" "nouveau.modeset=0"];
# Select internationalisation properties. # Select internationalisation properties.
i18n = { i18n = {
consoleFont = "Lat2-Terminus16"; consoleFont = "Lat2-Terminus16";
@@ -68,14 +75,11 @@
glxinfo glxinfo
nmon nmon
htop htop
gnumake
atop
]; ];
boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "0b4cbd12";
boot.loader.grub.copyKernels = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
programs.light.enable = true;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;