2024-12-30 10:06:29 -06:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-09-08 19:22:14 -05:00
|
|
|
imports = [
|
|
|
|
./disko.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
hostname = "mynix";
|
|
|
|
width = 3440;
|
|
|
|
height = 1440;
|
2024-11-06 11:37:37 -06:00
|
|
|
refresh = 100;
|
2025-01-02 12:01:05 -06:00
|
|
|
#// vrr = true;
|
2024-12-06 19:53:38 -06:00
|
|
|
|
2025-01-02 12:01:56 -06:00
|
|
|
desktops.niri.output = {
|
|
|
|
connectors = ["DP-1" "DP-2" "DP-3"];
|
|
|
|
disabled = ["HDMI-A-1" "HDMI-A-2" "HDMI-A-3"];
|
|
|
|
};
|
|
|
|
|
2024-12-11 21:25:08 -06:00
|
|
|
programs.looking-glass = {
|
|
|
|
enable = true;
|
|
|
|
igpu = true;
|
|
|
|
};
|
|
|
|
|
2024-12-06 19:53:38 -06:00
|
|
|
settings = {
|
|
|
|
storage.mnt = ["gayme" "myve"];
|
|
|
|
|
2024-12-06 19:51:19 -06:00
|
|
|
vm.passthrough = {
|
|
|
|
enable = true;
|
2025-01-04 12:14:35 -06:00
|
|
|
blacklist = true;
|
2024-12-06 19:51:19 -06:00
|
|
|
driver = "amdgpu";
|
|
|
|
guest = "myndows";
|
|
|
|
id = "1002:73df";
|
|
|
|
intel = true;
|
|
|
|
node = "pci_0000_03_00_0";
|
|
|
|
};
|
2024-12-06 19:54:17 -06:00
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
|
2024-09-11 18:37:03 -05: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-08 19:22:14 -05:00
|
|
|
|
|
|
|
# _._ _,-'""`-._
|
|
|
|
# (,-.`._,'( |\`-/|
|
|
|
|
# `-.-' \ )-`( , o o)
|
|
|
|
# `- \`_`"'-
|
|
|
|
#// services.logind.powerKey = "ignore"; # Disable power button
|
|
|
|
|
2024-12-06 19:54:17 -06:00
|
|
|
home-manager.users.${config.custom.username} = {
|
2024-12-30 10:06:29 -06:00
|
|
|
services.gammastep.settings.general.brightness-night = lib.mkForce 0.4;
|
2024-12-21 13:27:03 -05:00
|
|
|
|
2024-12-06 19:54:17 -06: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-08 19:22:14 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|