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

View file

@ -1,15 +1,16 @@
{ {
"debugLogging": false,
"IS_MAXIMIZED": false,
"IS_MINIMIZED": false,
"MIN_WIDTH": 0,
"MIN_HEIGHT": 0,
"OPEN_ON_STARTUP": false,
"MINIMIZE_TO_TRAY": false,
"openasar": { "openasar": {
"setup": true, "setup": true,
"noTyping": true, "noTyping": true,
"themeSync": true,
"quickstart": true, "quickstart": true,
"css": "@import url('https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css');\n\n:root {\n --accentcolor: 121,218,200;\n --accentcolor2: 255,84,84;\n --linkcolor: 128,160,255;\n --mentioncolor: 227,199,138;\n --textbrightest: 255,255,255;\n --textbrighter: 222,222,222;\n --textbright: 185,185,185;\n --textdark: 140,140,140;\n --textdarker: 115,115,115;\n --textdarkest: 80,80,80;\n --font: Overpass;\n --backgroundaccent: 50,52,55;\n --backgroundprimary: 0,0,0;\n --backgroundsecondary: 0,0,0;\n --backgroundsecondaryalt: 0,0,0;\n --backgroundtertiary: 50,52,55;\n --backgroundfloating: 50,52,55;\n --settingsicons: 1;\n}" "css": "@import url('https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css');\n\n:root {\n --accentcolor: 121,218,200;\n --accentcolor2: 255,84,84;\n --linkcolor: 128,160,255;\n --mentioncolor: 227,199,138;\n --textbrightest: 255,255,255;\n --textbrighter: 222,222,222;\n --textbright: 185,185,185;\n --textdark: 140,140,140;\n --textdarker: 115,115,115;\n --textdarkest: 80,80,80;\n --font: Overpass;\n --backgroundaccent: 50,52,55;\n --backgroundprimary: 0,0,0;\n --backgroundsecondary: 0,0,0;\n --backgroundsecondaryalt: 0,0,0;\n --backgroundtertiary: 50,52,55;\n --backgroundfloating: 50,52,55;\n --settingsicons: 1;\n}"
} },
"IS_MAXIMIZED": false,
"IS_MINIMIZED": false,
"SKIP_HOST_UPDATE": true,
"MIN_WIDTH": 0,
"MIN_HEIGHT": 0,
"OPEN_ON_STARTUP": false,
"MINIMIZE_TO_TRAY": false
} }

View file

@ -1,16 +1,19 @@
{ pkgs, lib, spicetify-nix, ... }: { pkgs, lib, spicetify-nix, ... }:
let
spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
in
{ {
imports = [ spicetify-nix.homeManagerModule ]; imports = [ spicetify-nix.homeManagerModule ];
programs.spicetify = { programs.spicetify = {
spotifyPackage = pkgs.spotify-unwrapped; spotifyPackage = pkgs.spotify-unwrapped;
spicetifyPackage = pkgs.spicetify-cli; spicetifyPackage = pkgs.spicetify-cli;
enable = true; enable = true;
enabledExtensions = with spicetify-nix.pkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [
"adblock.js" adblock
"hidePodcasts.js" hidePodcasts
"shuffle+.js" shuffle
]; ];
theme = spicetify-nix.pkgs.themes.Dribbblish; theme = spicePkgs.themes.Dribbblish;
colorScheme = "custom"; colorScheme = "custom";
customColorScheme = { customColorScheme = {
text = "f8f8f8"; text = "f8f8f8";

View file

@ -1,20 +1,30 @@
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm"> <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>Windows</name> <name>Windows</name>
<uuid>60d8329e-8670-f8bb-4a7d-04d9f51eff76</uuid> <uuid>035e02d8-04d3-05e5-4706-900700080009</uuid>
<memory unit="KiB">16777216</memory> <memory unit="KiB">16777216</memory>
<currentMemory unit="KiB">16777216</currentMemory> <currentMemory unit="KiB">16777216</currentMemory>
<vcpu placement="static" cpuset="3-5,9-11">6</vcpu> <vcpu placement="static" cpuset="8-15,24-31">16</vcpu>
<cputune> <cputune>
<vcpupin vcpu="0" cpuset="3"/> <vcpupin vcpu="0" cpuset="8"/>
<vcpupin vcpu="1" cpuset="9"/> <vcpupin vcpu="1" cpuset="24"/>
<vcpupin vcpu="2" cpuset="4"/> <vcpupin vcpu="2" cpuset="9"/>
<vcpupin vcpu="3" cpuset="10"/> <vcpupin vcpu="3" cpuset="25"/>
<vcpupin vcpu="4" cpuset="5"/> <vcpupin vcpu="4" cpuset="10"/>
<vcpupin vcpu="5" cpuset="11"/> <vcpupin vcpu="5" cpuset="26"/>
<emulatorpin cpuset="0-2,6-8"/> <vcpupin vcpu="6" cpuset="11"/>
<vcpupin vcpu="7" cpuset="27"/>
<vcpupin vcpu="8" cpuset="12"/>
<vcpupin vcpu="9" cpuset="28"/>
<vcpupin vcpu="10" cpuset="13"/>
<vcpupin vcpu="11" cpuset="29"/>
<vcpupin vcpu="12" cpuset="14"/>
<vcpupin vcpu="13" cpuset="30"/>
<vcpupin vcpu="14" cpuset="15"/>
<vcpupin vcpu="15" cpuset="31"/>
<emulatorpin cpuset="0-7,16-23"/>
</cputune> </cputune>
<os> <os>
<type arch="x86_64" machine="pc-q35-7.1">hvm</type> <type arch="x86_64" machine="pc-q35-7.2">hvm</type>
<loader readonly="yes" type="pflash">/run/libvirt/nix-ovmf/OVMF_CODE.fd</loader> <loader readonly="yes" type="pflash">/run/libvirt/nix-ovmf/OVMF_CODE.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/Windows_VARS.fd</nvram> <nvram>/var/lib/libvirt/qemu/nvram/Windows_VARS.fd</nvram>
<boot dev="hd"/> <boot dev="hd"/>
@ -46,7 +56,7 @@
<ioapic driver="kvm"/> <ioapic driver="kvm"/>
</features> </features>
<cpu mode="host-passthrough" check="none" migratable="off"> <cpu mode="host-passthrough" check="none" migratable="off">
<topology sockets="1" dies="1" cores="3" threads="2"/> <topology sockets="1" dies="1" cores="8" threads="2"/>
<cache mode="passthrough"/> <cache mode="passthrough"/>
</cpu> </cpu>
<clock offset="localtime"> <clock offset="localtime">
@ -177,20 +187,20 @@
<address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/> <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
</sound> </sound>
<audio id="1" type="jack"> <audio id="1" type="jack">
<input clientName="win10" connectPorts="Starship/Matisse HD Audio Controller Analog Stereo:capture_F[LR]"/> <input clientName="win10" connectPorts="Family 17h/19h HD Audio Controller Analog Stereo:capture_F[LR]"/>
<output clientName="win10" connectPorts="Starship/Matisse HD Audio Controller Analog Stereo:playback_F[LR]"/> <output clientName="win10" connectPorts="Family 17h/19h HD Audio Controller Analog Stereo:playback_F[LR]"/>
</audio> </audio>
<hostdev mode="subsystem" type="pci" managed="yes"> <hostdev mode="subsystem" type="pci" managed="yes">
<source> <source>
<address domain="0x0000" bus="0x10" slot="0x00" function="0x0"/> <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</source> </source>
<address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/> <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
</hostdev> </hostdev>
<hostdev mode="subsystem" type="pci" managed="yes"> <hostdev mode="subsystem" type="pci" managed="yes">
<source> <source>
<address domain="0x0000" bus="0x10" slot="0x00" function="0x1"/> <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
</source> </source>
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/> <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
</hostdev> </hostdev>
<memballoon model="none"/> <memballoon model="none"/>
</devices> </devices>

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

View file

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

View file

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

View file

@ -1,26 +1,34 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, yt-dlp
, pkg-config
, openssl
, cmake
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "parrot"; pname = "parrot";
version= "v1.4.2"; version= "1.4.2";
# buildFeatures = ["let_else"];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = aquelemiguel; owner = "aquelemiguel";
repo = parrot; repo = "parrot";
rev = "28d7db3c5b50c7ba01eec71a3177875feae44bcc"; rev = "28d7db3c5b50c7ba01eec71a3177875feae44bcc";
sha256 = ""; sha256 = "sha256-G9SfaiR/KIt+Xm7vLs/EGaImZeSaUbpgAArfK6oVJeM=";
}; };
buildInputs = [ buildInputs = [
yt-dlp
openssl
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config
cmake
]; ];
cargoSha256 = "sha256-ScwyPTq9da0hst/b2FX89SP03OX3HrJT3oUKGsHEjgs=";
cargoSha256 = "";
RUSTC_BOOTSTRAP = 1;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/aquelemiguel/parrot"; homepage = "https://github.com/aquelemiguel/parrot";

View file

@ -3,9 +3,9 @@
#important stuff first #important stuff first
imports = imports =
[ [
../modules/boot.nix ../modules/amd.nix
../modules/packages.nix ../modules/packages.nix
../modules/nvidia.nix ../modules/boot.nix
../modules/fonts.nix ../modules/fonts.nix
../modules/scripts.nix ../modules/scripts.nix
../modules/vfio.nix ../modules/vfio.nix
@ -47,6 +47,8 @@
fsType = "vfat"; fsType = "vfat";
}; };
}; };
virtualisation.docker.enable = true;
#mining stuff
systemd.services.mining = { systemd.services.mining = {
enable = false; enable = false;
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig]; path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];