i just want to fix this on my desktop not on lappy smh my head pls owo

This commit is contained in:
Serenity-F 2024-09-10 14:18:49 +10:00
parent e047f13578
commit fa353ff868

View file

@ -0,0 +1,82 @@
{ inputs, outputs, config, lib, pkgs, ... }:
{
imports = [
# Include the results of the hardware scan.
# ./hardware-configuration.nix
# "${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
# ./disko-config.nix
# ./network-configuration.nix
../../core/configuration.nix
];
# Enable swap on luks
# boot = {
# loader = {
# systemd-boot = {
# enable = true;
# configurationLimit = 7;
# };
# efi = {
# canTouchEfiVariables = true;
# efiSysMountPoint = "/boot/efi";
# };
# };
# initrd = {
# systemd.enable = true;
# secrets = {
# "crypto_keyfile.bin" = null;
# };
# luks = {
# devices."luks-DISK_UUID" = {
# device = "/dev/disk/by-uuid/DISK_UUID";
# keyfile = "/crypto_keyfile.bin";
# };
# };
};
};
services.fstrim.enable = true;
# powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware = {
cpu.intel.updateMicrocode = true;
enableAllFirmware = true;
bluetooth.enable = false;
opengl = {
enable = true;
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
nix = {
# settings = {
# };
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 3d";
persistent = true;
};
};
environment.systemPackages = with pkgs; [
umr
radeontop
radeontools
radeon-profile
amdgpu_top
];
}