move video drivers into separate configs

This commit is contained in:
mir 2024-03-10 16:30:51 -08:00
parent 78197b5600
commit 13d7d36872
2 changed files with 7 additions and 4 deletions

View File

@ -46,10 +46,10 @@
variant = ""; variant = "";
options = "caps_lock:esc"; options = "caps_lock:esc";
}; };
videoDrivers = [ # videoDrivers = [
"displaylink" # broken # "displaylink" # broken
"modesetting" # "modesetting"
]; # ];
# Enable the GNOME Desktop Environment. # Enable the GNOME Desktop Environment.
desktopManager = { desktopManager = {
xterm.enable = false; xterm.enable = false;

View File

@ -37,6 +37,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" ];
hardware.asahi = { hardware.asahi = {
peripheralFirmwareDirectory = ./galvatron/firmware; peripheralFirmwareDirectory = ./galvatron/firmware;
# useExperimentalGPUDriver = true; # useExperimentalGPUDriver = true;
@ -65,6 +66,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
networking.hostName = "starscream"; networking.hostName = "starscream";
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
sound.enable = true; sound.enable = true;
@ -86,6 +88,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "knockout"; networking.hostName = "knockout";
sound.enable = true; sound.enable = true;