This commit is contained in:
serenity-F 2024-09-20 21:41:41 +10:00
parent eaa734e091
commit 64ef819cfb
No known key found for this signature in database
2 changed files with 32 additions and 53 deletions

View file

@ -10,48 +10,11 @@
];
## trim to keep SSDs healthy-ish
services.fstrim.enable = true;
#powerManagement = {
#enable = true;
#powertop.enable = true;
#cpuFreqGovernor = Lib.mkDefault "performance";
#cpufreq = {
#min = 1500000;
#max = 4400000;
#};
#};
hardware = {
cpu.intel.updateMicrocode = true;
enableAllFirmware = false;
#bluetooth.enable = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
nix = {
#settings = {
#};
gc = {
## every day, automatically collect garbage older than 10 days
## Every day, automatically collect garbage older than 10 days
automatic = true;
dates = "daily";
options = "--delete-older-than 3d";

View file

@ -3,7 +3,7 @@
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
## commented out disko for now as I have broken it :D
## Commented out disko for now as I have broken it :c
#./disko.nix
];
@ -37,7 +37,7 @@
efi = {
canTouchEfiVariables = true;
};
## for some reason GPT/UEFI didn't work, so neither does systemd-boot
## For some reason GPT/UEFI didn't work, so neither does systemd-boot
## stuck using MBR/DOS and GRUB instead
grub = {
enable = true;
@ -48,18 +48,34 @@
};
## trim to keep SSDs healthy-ish
## Trim to keep SSDs healthy-ish
services.fstrim.enable = true;
#powerManagement = {
#enable = true;
#powertop.enable = true;
#cpuFreqGovernor = Lib.mkDefault "performance";
#cpufreq = {
#min = 1500000;
#max = 4400000;
#};
#};
hardware = {
## Pick either "true" OR "lib.mkDefault -"
#cpu.intel.updateMicrocode = true;
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
#cpu.intel.updateMicrocode = true;
enableAllFirmware = true;
bluetooth.enable = false;
graphics = {
enable = true;
## packages for integrated graphics inside Hades
## Packages for integrated graphics inside Hades
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
@ -70,7 +86,7 @@
};
};
## some packages for managing the radeon GPU inside Hades
## Some packages for managing the radeon GPU inside Hades
environment.systemPackages = with pkgs; [
umr
radeontop