update gpu-passthru

This commit is contained in:
zack 2025-01-13 20:45:19 -05:00
parent 82c3c45428
commit 20108064de
No known key found for this signature in database
GPG key ID: EE8A2B709E2401D1
5 changed files with 33 additions and 23 deletions

View file

@ -60,11 +60,11 @@
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"text/html" = "zen_beta.desktop"; "text/html" = "zen.desktop";
"x-scheme-handler/http" = "zen_beta.desktop"; "x-scheme-handler/http" = "zen.desktop";
"x-scheme-handler/https" = "zen_beta.desktop"; "x-scheme-handler/https" = "zen.desktop";
"x-scheme-handler/about" = "zen_beta.desktop"; "x-scheme-handler/about" = "zen.desktop";
"x-scheme-handler/unknown" = "zen_beta.desktop"; "x-scheme-handler/unknown" = "zen.desktop";
"inode/directory" = ["org.gnome.Nautilus.desktop"]; "inode/directory" = ["org.gnome.Nautilus.desktop"];

View file

@ -31,8 +31,8 @@ in {
}; };
theme = { theme = {
name = "Tokyonight-Dark"; name = "Catppuccin-GTK-Dark";
package = pkgs.tokyonight-gtk-theme; package = pkgs.magnetic-catppuccin-gtk;
}; };
iconTheme = { iconTheme = {

View file

@ -21,8 +21,21 @@ in {
enable = true; enable = true;
onBoot = "ignore"; onBoot = "ignore";
onShutdown = "shutdown"; onShutdown = "shutdown";
qemuOvmf = true; qemu = {
qemuRunAsRoot = true; package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
})
.fd
];
};
};
}; };
systemd.services.libvirtd = { systemd.services.libvirtd = {
@ -35,6 +48,7 @@ in {
kmod kmod
systemd systemd
ripgrep ripgrep
mullvad
sd sd
]; ];
}; };
@ -45,11 +59,9 @@ in {
ln -Tfs /etc/libvirt/hooks /var/lib/libvirt/hooks ln -Tfs /etc/libvirt/hooks /var/lib/libvirt/hooks
''; '';
# environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# virt-manager libguestfs-with-appliance
# gnome3.dconf ];
# libguestfs
# ];
environment.etc = { environment.etc = {
"/libvirt/hooks/qemu" = { "/libvirt/hooks/qemu" = {
@ -119,6 +131,9 @@ in {
systemctl set-property --runtime -- system.slice AllowedCPUs=0-6 systemctl set-property --runtime -- system.slice AllowedCPUs=0-6
systemctl set-property --runtime -- init.scope AllowedCPUs=0-6 systemctl set-property --runtime -- init.scope AllowedCPUs=0-6
# disable vpn
mullvad disconnect -w
# Logout # Logout
# source "/home/owner/Desktop/Sync/Files/Tools/logout.sh" # source "/home/owner/Desktop/Sync/Files/Tools/logout.sh"

View file

@ -104,6 +104,7 @@
pkgs.docker-compose pkgs.docker-compose
pkgs.podman-compose pkgs.podman-compose
pkgs.transmission_4 pkgs.transmission_4
pkgs.restic
inputs.agenix.packages.${system}.agenix inputs.agenix.packages.${system}.agenix
inputs.awsvpnclient.packages."${pkgs.system}".awsvpnclient inputs.awsvpnclient.packages."${pkgs.system}".awsvpnclient

View file

@ -28,17 +28,11 @@
options = ["fmask=0077" "dmask=0077"]; options = ["fmask=0077" "dmask=0077"];
}; };
fileSystems."/mnt/lul" = { fileSystems."/mnt/bk" = {
device = "/dev/disk/by-partuuid/2b7f6948-57a6-4fef-a931-b3aa962faee3"; device = "/dev/disk/by-partuuid/f352c9b5-2207-4313-bcb4-ba0491de72fe";
fsType = "ntfs"; fsType = "ext4";
options = [ options = [
"uid=1000" # Replace with your user's UID if different
"gid=100" # Replace with your user's GID if different
"rw" # Read-write access
"user" # Allow users to mount
"exec" # Allow execution of binaries
"auto" # Mount at boot "auto" # Mount at boot
"noatime" # Don't update access time (better performance)
]; ];
}; };