{ pkgs, ... }: { imports = [ ./hardware-configuration.nix ../computer.nix ] ++ builtins.map (i: ../../modules/${i}) ([ "niri-de" "battery-notify.nix" "customisation.nix" "games.nix" ]); # Bootloader boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; kernelPackages = pkgs.linuxPackages; }; services.xserver.xkb = { layout = "fr"; variant = ""; }; # Configure console keymap console.keyMap = "fr"; environment.variables = { LD_LIBRARY_PATH = "/run/opengl-driver/lib"; ELECTRON_OZONE_PLATFORM_HINT = "wayland"; OZONE_PLATFORM = "wayland"; GDK_BACKEND = "wayland"; }; services.tlp = { enable = true; settings = { CPU_SCALING_GOVERNOR_ON_AC = "performance"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; CPU_MAX_PERF_ON_BAT = 20; START_CHARGE_THRESH_BAT0 = 40; STOP_CHARGE_THRESH_BAT0 = 80; }; }; system.stateVersion = "26.05"; home-manager.users."fantomitechno" = { lib, ... }: { home.stateVersion = "26.05"; }; }