2024-12-15 00:29:51 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
nixos-hardware,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-12 23:47:00 +02:00
|
|
|
{
|
|
|
|
config = {
|
|
|
|
boot = {
|
2024-04-14 06:15:59 +02:00
|
|
|
# From nixos-generate-config
|
2024-12-15 00:29:51 +01:00
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
"sdhci_pci"
|
|
|
|
];
|
2024-04-14 06:15:59 +02:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
2024-06-12 23:47:00 +02:00
|
|
|
};
|
|
|
|
|
2024-04-14 06:15:59 +02:00
|
|
|
# Needed for Wi-Fi
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
2024-06-12 23:47:00 +02:00
|
|
|
frogeye.desktop = {
|
|
|
|
x11_screens = [ "eDP-1" ];
|
|
|
|
maxVideoHeight = 1080;
|
2024-06-24 14:03:59 +02:00
|
|
|
|
|
|
|
phasesCommands = {
|
|
|
|
jour = ''
|
|
|
|
echo 0 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
|
|
|
${pkgs.brightnessctl}/bin/brightnessctl set 30% &
|
|
|
|
'';
|
|
|
|
crepuscule = ''
|
|
|
|
echo 1 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
|
|
|
${pkgs.brightnessctl}/bin/brightnessctl set 10% &
|
|
|
|
'';
|
|
|
|
nuit = ''
|
|
|
|
echo 10 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
|
|
|
${pkgs.brightnessctl}/bin/brightnessctl set 0% &
|
|
|
|
'';
|
|
|
|
};
|
2024-06-12 23:47:00 +02:00
|
|
|
};
|
|
|
|
|
2024-06-18 04:17:35 +02:00
|
|
|
# Alt key swallowed the Meta one
|
2024-12-15 00:29:51 +01:00
|
|
|
home-manager.users.geoffrey =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
xsession.windowManager.i3.config.modifier = "Mod1";
|
|
|
|
};
|
2024-06-18 04:17:35 +02:00
|
|
|
|
2024-06-12 23:47:00 +02:00
|
|
|
};
|
|
|
|
imports = [
|
|
|
|
nixos-hardware.nixosModules.common-cpu-amd
|
|
|
|
nixos-hardware.nixosModules.common-gpu-amd
|
|
|
|
nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
nixos-hardware.nixosModules.common-pc-ssd
|
|
|
|
];
|
|
|
|
}
|