Compare commits
5 Commits
d2810e4708
...
a852d18579
| Author | SHA1 | Date | |
|---|---|---|---|
| a852d18579 | |||
| 462433542d | |||
| 92f976f9dc | |||
| 28d27a9f25 | |||
| b292094fa5 |
@@ -12,10 +12,30 @@
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
gfxmodeEfi = "3440x1440";
|
||||
# font = "${pkgs.ubuntu_font_family}/share/fonts/ubuntu/UbuntuMono-R.ttf";
|
||||
font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf";
|
||||
fontSize = 36;
|
||||
};
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_8;
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_10;
|
||||
# boot.kernelPatches = [
|
||||
# {
|
||||
# name = "amd-drm-glitch-fix";
|
||||
# patch = (pkgs.fetchurl {
|
||||
# url = "https://patchwork.freedesktop.org/patch/605900/raw/";
|
||||
# hash = "sha256-WR537QGQak5pwm4BnLiQ/pc7gAkn2SdI3QRvGTRZSFE=";
|
||||
# });
|
||||
# }
|
||||
# ];
|
||||
boot.kernelParams = ["amd_pstate=active"];
|
||||
boot.supportedFilesystems = ["ntfs"];
|
||||
|
||||
@@ -56,7 +76,11 @@
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
|
||||
services.xserver.desktopManager.gnome = {
|
||||
enable = true;
|
||||
extraGSettingsOverridePackages = [ pkgs.gnome.mutter ];
|
||||
@@ -67,9 +91,9 @@
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
@@ -93,7 +117,27 @@
|
||||
};
|
||||
|
||||
services.cpupower-gui.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
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;
|
||||
|
||||
#Optional helps save long term battery health
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||
|
||||
};
|
||||
};
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
@@ -117,6 +161,8 @@
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
#programs.java.enable = true;
|
||||
#programs.steam.package = pkgs.steam.override { withJava = true; };
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
@@ -141,8 +187,8 @@
|
||||
powertop
|
||||
python312
|
||||
nodejs_20
|
||||
cascadia-code
|
||||
linuxKernel.packages.linux_6_8.cpupower
|
||||
linuxKernel.packages.linux_6_10.cpupower
|
||||
linuxKernel.packages.linux_6_10.ryzen-smu
|
||||
vimix-cursors
|
||||
vimix-icon-theme
|
||||
vimix-gtk-themes
|
||||
@@ -152,6 +198,7 @@
|
||||
iosevka
|
||||
ubuntu_font_family
|
||||
hack-font
|
||||
cascadia-code
|
||||
];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user