ft: hyprland to home manager, mostly

This commit is contained in:
2026-10-02 01:39:23 +02:00
parent c7928a52a8
commit 0e3a6b116d
29 changed files with 885 additions and 93 deletions

View File

@@ -1,5 +1,8 @@
{ lib, config, pkgs, ... }:
let
hyprLib = import ../../lib/hypr.nix { inherit lib; };
in
{
imports = [
./hardware-configuration.nix
@@ -13,6 +16,10 @@
boot.initrd.luks.devices."luks-082cc474-c00a-46c5-b140-4b7ccc2e6958".device =
"/dev/disk/by-uuid/082cc474-c00a-46c5-b140-4b7ccc2e6958";
home-manager.users."djai".wayland.windowManager.hyprland.settings.bind = [
(hyprLib.bind "XF86TouchpadToggle" (hyprLib.exec "~/.config/hypr/scripts/toggle_touchpad.sh") "Toggle touchpad using XF86 keys")
];
services.power-profiles-daemon.enable = true;
hardware.bluetooth.powerOnBoot = false;

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.

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;
};
}