Migration to new CPU RAM and MOBO

This commit is contained in:
ISnortPennies 2022-12-28 12:28:39 -05:00
parent d40d26761b
commit 782953b900
9 changed files with 80 additions and 48 deletions

8
modules/amd.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
};
}

View file

@ -12,7 +12,6 @@
gimp #edit stuff
qbittorrent #steal stuff
discord # talk to people (gross)
spotify-tray # tray icons are nice
feh #for wallpaper
xfce.mousepad
brightnessctl #brightness control for laptop
@ -30,6 +29,7 @@
pcmanfm #file manager
haskellPackages.squeeze #file compression
nix-tree #view packages
docker
];
}

View file

@ -33,15 +33,15 @@
if [ "$GUEST_NAME" == "Windows" ]; then
if [ "$OPERATION" == "start" ]; then
systemctl set-property --runtime -- user.slice AllowedCPUs=0,1,2,6,7,8
systemctl set-property --runtime -- system.slice AllowedCPUs=0,1,2,6,7,8
systemctl set-property --runtime -- init.scope AllowedCPUs=0,1,2,6,7,8
systemctl set-property --runtime -- user.slice AllowedCPUs=0-7,16-23
systemctl set-property --runtime -- system.slice AllowedCPUs=0-7,16-23
systemctl set-property --runtime -- init.scope AllowedCPUs=0-7,16-23
fi
if [ "$OPERATION" == "stopped" ]; then
systemctl set-property --runtime -- user.slice AllowedCPUs=0-11
systemctl set-property --runtime -- system.slice AllowedCPUs=0-11
systemctl set-property --runtime -- init.scope AllowedCPUs=0-11
systemctl set-property --runtime -- user.slice AllowedCPUs=0-31
systemctl set-property --runtime -- system.slice AllowedCPUs=0-31
systemctl set-property --runtime -- init.scope AllowedCPUs=0-31
fi
fi
'';

View file

@ -5,7 +5,7 @@
videoDrivers =
if (config.networking.hostName == "gerg-laptop")
then ["modesetting" "nvidia"]
else [ "nvidia" ];
else [ "amdgpu" ];
layout = "us";
libinput.enable = true;
xautolock.enable = false;