mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
Migration to new CPU RAM and MOBO
This commit is contained in:
parent
d40d26761b
commit
782953b900
9 changed files with 80 additions and 48 deletions
8
modules/amd.nix
Normal file
8
modules/amd.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
hardware.opengl = {
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue