2024-03-26 16:18:17 +01:00
|
|
|
{ pkgs, lib, config, nixos-hardware, ... }:
|
2023-11-28 20:53:18 +01:00
|
|
|
{
|
2024-03-26 16:18:17 +01:00
|
|
|
config = {
|
|
|
|
# UEFI works here, and variables can be touched
|
|
|
|
boot.loader = {
|
|
|
|
efi.canTouchEfiVariables = lib.mkDefault true;
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev"; # Don't install on MBR
|
|
|
|
# TODO Maybe we could? In case the HDD doesn't boot anymore?
|
|
|
|
};
|
2023-11-30 19:01:55 +01:00
|
|
|
};
|
2024-03-26 16:18:17 +01:00
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
frogeye.desktop = {
|
|
|
|
x11_screens = [
|
|
|
|
"HDMI-1-3"
|
|
|
|
"DVI-I-2-1"
|
|
|
|
];
|
|
|
|
maxVideoHeight = 1440;
|
|
|
|
numlock = true;
|
|
|
|
phasesBrightness = {
|
|
|
|
enable = true;
|
|
|
|
jour = "40000";
|
|
|
|
crepuscule = "10000";
|
|
|
|
nuit = "1";
|
|
|
|
};
|
2024-02-17 18:39:09 +01:00
|
|
|
};
|
2024-03-26 16:18:17 +01:00
|
|
|
# Needs prefetched binary blobs, see https://nixos.wiki/wiki/Displaylink
|
2024-05-06 22:26:15 +02:00
|
|
|
services.xserver.videoDrivers = [ "nvidia" "displaylink" "modesetting" ];
|
2024-02-17 18:39:09 +01:00
|
|
|
};
|
2024-03-26 16:18:17 +01:00
|
|
|
imports = [
|
|
|
|
nixos-hardware.nixosModules.dell-g3-3779
|
|
|
|
];
|
2023-11-28 20:53:18 +01:00
|
|
|
}
|