2024-12-07 01:54:17 +00:00
|
|
|
{config, ...}: {
|
2024-09-09 00:22:14 +00:00
|
|
|
imports = [
|
|
|
|
./disko.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
hostname = "mynix";
|
|
|
|
width = 3440;
|
|
|
|
height = 1440;
|
2024-11-06 17:37:37 +00:00
|
|
|
refresh = 100;
|
2024-12-07 01:53:38 +00:00
|
|
|
|
2024-12-12 03:25:08 +00:00
|
|
|
programs.looking-glass = {
|
|
|
|
enable = true;
|
|
|
|
igpu = true;
|
|
|
|
};
|
|
|
|
|
2024-12-07 01:53:38 +00:00
|
|
|
settings = {
|
|
|
|
storage.mnt = ["gayme" "myve"];
|
|
|
|
|
2024-12-07 01:51:19 +00:00
|
|
|
vm.passthrough = {
|
|
|
|
enable = true;
|
|
|
|
driver = "amdgpu";
|
|
|
|
guest = "myndows";
|
|
|
|
id = "1002:73df";
|
|
|
|
init = true;
|
|
|
|
intel = true;
|
|
|
|
node = "pci_0000_03_00_0";
|
|
|
|
};
|
2024-12-07 01:54:17 +00:00
|
|
|
};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
|
2024-09-11 23:37:03 +00:00
|
|
|
boot = {
|
|
|
|
# Enable hibernation with a swapfile on btrfs
|
|
|
|
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
|
|
|
|
#?? findmnt -no UUID -T /swap/swapfile
|
|
|
|
resumeDevice = "/dev/disk/by-uuid/5df5028b-a3ba-4f07-80ef-fd5abd542a81";
|
|
|
|
|
|
|
|
kernelParams = [
|
|
|
|
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
|
|
|
|
"resume_offset=533760"
|
|
|
|
|
|
|
|
# https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750
|
|
|
|
#// "gpu_sched.sched_policy=0" # Attempt to fix stutter
|
|
|
|
];
|
|
|
|
};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
# _._ _,-'""`-._
|
|
|
|
# (,-.`._,'( |\`-/|
|
|
|
|
# `-.-' \ )-`( , o o)
|
|
|
|
# `- \`_`"'-
|
|
|
|
#// services.logind.powerKey = "ignore"; # Disable power button
|
|
|
|
|
2024-12-07 01:54:17 +00:00
|
|
|
home-manager.users.${config.custom.username} = {
|
2024-12-21 18:27:03 +00:00
|
|
|
services.gammastep.settings.general.brightness-night = 0.4;
|
|
|
|
|
2024-12-07 01:54:17 +00:00
|
|
|
# Prevent secondary GPU reset from crashing window manager
|
|
|
|
wayland.windowManager.hyprland.settings = {
|
|
|
|
monitor = [
|
|
|
|
"HDMI-A-1, disable"
|
|
|
|
"HDMI-A-2, disable"
|
|
|
|
"HDMI-A-3, disable"
|
2024-09-09 00:22:14 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|