Skip to content

Commit

Permalink
tb14: hardware tweak
Browse files Browse the repository at this point in the history
- also update vimrc deps
  • Loading branch information
LEXUGE committed Dec 18, 2024
1 parent 1038927 commit adca871
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 36 deletions.
44 changes: 22 additions & 22 deletions cfgs/tb14/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,28 @@
steam
# obsidian
# We fix installer version so don't get updated automatically when Wolfram releases new version
(import inputs.nixpkgs-mathematica {
system = pkgs.system;
config.allowUnfree = true;
overlays = [
(final: prev: {
# Patch mathematica to solve "libdbus not found" error.
# Also pin it to a specific commit to prevent from rebuilding.
mathematica_13_3_1 =
(prev.mathematica.overrideAttrs (
_: prevAttrs: {
wrapProgramFlags = prevAttrs.wrapProgramFlags ++ [
"--prefix LD_LIBRARY_PATH : ${prev.lib.makeLibraryPath [ prev.dbus.lib ]}"
];
}
)).override
{
version = "13.3.1";
};
})
];
}).mathematica_13_3_1
coyim
# (import inputs.nixpkgs-mathematica {
# system = pkgs.system;
# config.allowUnfree = true;
# overlays = [
# (final: prev: {
# # Patch mathematica to solve "libdbus not found" error.
# # Also pin it to a specific commit to prevent from rebuilding.
# mathematica_13_3_1 =
# (prev.mathematica.overrideAttrs (
# _: prevAttrs: {
# wrapProgramFlags = prevAttrs.wrapProgramFlags ++ [
# "--prefix LD_LIBRARY_PATH : ${prev.lib.makeLibraryPath [ prev.dbus.lib ]}"
# ];
# }
# )).override
# {
# version = "13.3.1";
# };
# })
# ];
# }).mathematica_13_3_1
# coyim
zotero
];
extraDconf = {
Expand Down
17 changes: 6 additions & 11 deletions cfgs/tb14/hardware.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, modulesPath, ... }:
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

Expand All @@ -8,24 +8,19 @@
"nvme"
"usb_storage"
"sd_mod"
"thunderbolt"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];

hardware.enableRedistributableFirmware = true;

# Update Intel CPU Microcode
hardware.cpu.intel.updateMicrocode = true;
# Update AMD CPU Microcode
hardware.cpu.amd.updateMicrocode = true;

# Intel UHD 620 Hardware Acceleration
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver # only available starting nixos-19.03 or the current nixos-unstable
];
enable32Bit = true;
};
}
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit adca871

Please sign in to comment.