ft: hyprland to home manager, mostly

This commit is contained in:
djaidjai committed 2026-10-02 01:39:23 +02:00
1 parent c7928a52a8
commit 0e3a6b116d
29 files changed
+885 -93

No files matched your search

+9
View File
@@ -1,5 +1,8 @@
{ lib, config, pkgs, ... }:
let
hyprLib = import ../../lib/hypr.nix { inherit lib; };
in
{
imports = [
./hardware-configuration.nix
@@ -19,6 +22,12 @@
};
hardware.tuxedo-drivers.enable = true;
# tuxcomp specific binds
home-manager.users."djai".wayland.windowManager.hyprland.settings.bind = [
(hyprLib.bind "SUPER + SHIFT + G" (hyprLib.exec "~/.config/hypr/scripts/gamemode_power.sh") "Toggle gaming power profile mode")
(hyprLib.bind "META + ALT + F6" (hyprLib.exec "~/.config/hypr/scripts/gamemode_power.sh") "Toggle gaming power profile mode")
];
# FIXME: this patch does not work
# adds a `stretch_aspect` scaler (Valve/gamescope#927) and lets `--rt` use the
# rtprio limit from modules/gaming.nix instead of CAP_SYS_NICE.
+9 -9
View File
@@ -6,19 +6,19 @@
"nvidia"
];
hardware.nvidia.prime = {
offload = {
enable = true;
enableOffloadCmd = true;
hardware.nvidia = {
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
amdgpuBusId = "PCI:0@6:0:0";
nvidiaBusId = "PCI:0@1:0:1";
};
amdgpuBusId = "PCI:6@0:0:0";
nvidiaBusId = "PCI:1@0:0:0";
};
hardware.nvidia = {
open = true;
modesetting.enable = true;
nvidiaSettings = true;
powerManagement.enable = true;
};
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.