moved nvidia drivers to host configuration

This commit is contained in:
Moritz Böhme 2021-10-03 12:29:45 +02:00
parent 473d14d921
commit e8ec62c608
2 changed files with 11 additions and 21 deletions

View file

@ -5,11 +5,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports = [
[ # Include the results of the hardware scan.
# Include the results of the hardware scan. ./hardware-configuration.nix
./hardware-configuration.nix ];
];
# BOOT # BOOT
boot = { boot = {
@ -36,6 +35,8 @@
interfaces.enp42s0.useDHCP = true; interfaces.enp42s0.useDHCP = true;
}; };
services.xserver.videoDrivers = [ "nvidia" ];
# Powersaving # Powersaving
services.tlp.enable = true; services.tlp.enable = true;
powerManagement.enable = true; powerManagement.enable = true;

View file

@ -6,8 +6,6 @@
enable = true; enable = true;
layout = "de"; layout = "de";
videoDrivers = [ "nvidia" ];
displayManager = { displayManager = {
defaultSession = "none+bspwm"; defaultSession = "none+bspwm";
@ -15,15 +13,13 @@
enable = true; enable = true;
user = "moritz"; user = "moritz";
}; };
lightdm = { lightdm = { enable = true; };
enable = true;
};
}; };
windowManager.bspwm.enable = true; windowManager.bspwm.enable = true;
}; };
}; };
console.keyMap = "de"; console.keyMap = "de";
home-manager.users.moritz = { home-manager.users.moritz = {
xsession.windowManager.bspwm.enable = true; xsession.windowManager.bspwm.enable = true;
@ -39,16 +35,9 @@
source = ./sxhkdrc; source = ./sxhkdrc;
onChange = "pkill -USR1 -x sxhkd"; onChange = "pkill -USR1 -x sxhkd";
}; };
"wallpaper/dracula.png" = { "wallpaper/dracula.png" = { source = ./dracula.png; };
source = ./dracula.png;
};
}; };
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
feh
playerctl
pamixer
brightnessctl
];
}; };
} }