moved nvidia drivers to host configuration

nixos
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, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# BOOT
boot = {
@ -36,6 +35,8 @@
interfaces.enp42s0.useDHCP = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
# Powersaving
services.tlp.enable = true;
powerManagement.enable = true;

View File

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